# Makefile for log_archie utility

# Set BIN and MAN to the directories you want to install log_archie executable
# and man pages.
BIN = ../bin
MAN = ../man
SECTION = man1

all: clipline log_archie

install: all
	cp clipline $(BIN)
	chmod +x log_archie
	cp log_archie $(BIN)
	chmod +x postarchie.awk
	cp postarchie.awk $(BIN)
	cp clipline.1 log_archie.1 $(MAN)/$(SECTION)
	# Catman -M works properly on SunOS, creating $(MAN)/whatis, but on 
	# Concentrix this tries to overwrite /usr/lib/whatis.
	# Let's be careful and only run it if running on a Sun workstation.
	sun
	catman -M $(MAN)
