--- Makefile.orig Thu Jun 15 11:17:14 2000 +++ Makefile Sun Jun 17 14:56:30 2001 @@ -6,7 +6,7 @@ TARGET = monitord -MANDIR = /usr/local/man +MANDIR = $(PREFIX)/man .SUFFIXES: .SUFFIXES: .c .o @@ -28,6 +28,6 @@ $(CC) $(OBJECTS) -o $(TARGET) install: - $(INSTALL) -cs $(TARGET) /usr/local/bin - $(INSTALL) -c $(TARGET).conf /usr/local/etc - $(INSTALL) -c $(TARGET).8 $(MANDIR)/man8 + $(BSD_INSTALL_PROGRAM) $(TARGET) $(PREFIX)/bin + if [ ! -e $(PREFIX)/etc/$(TARGET).conf ] ; then $(BSD_INSTALL_DATA) $(TARGET).conf $(PREFIX)/etc; fi + $(BSD_INSTALL_MAN) -c $(TARGET).8 $(MANDIR)/man8