--- Makefile.orig 2004-05-29 14:27:21 UTC +++ Makefile @@ -4,7 +4,8 @@ RMCMD = rm -f INSTALL = install -prefix = /usr/local +prefix = ${PREFIX} +etcdir = $(prefix)/etc sbindir = $(prefix)/sbin SUBDIRS = ipaddr strpdate @@ -28,13 +29,13 @@ $(RC): install: $(RC) @for subdir in $(SUBDIRS); do (cd $$subdir && make install) ; done @[ -d $(sbindir) ] || mkdir -vp $(sbindir) - $(INSTALL) -c -m 700 -o root $(PROGRAM) $(sbindir) - $(INSTALL) -c -m 600 -o root $(RC) $(HOME)/.$(RC).sample + $(INSTALL) -c -m 700 $(PROGRAM) $(DESTDIR)$(sbindir) + $(INSTALL) -c -m 600 $(RC) $(DESTDIR)$(etcdir)/$(RC).sample uninstall: @for subdir in $(SUBDIRS); do (cd $$subdir && make uninstall) ; done -$(RMCMD) $(sbindir)/$(PROGRAM) - -$(RMCMD) $(HOME)/.$(RC).sample + -$(RMCMD) $(etcdir)/$(RC).sample clean: -$(RMCMD) *~ *.bak