--- Makefile.orig Fri Nov 28 06:25:22 2003 +++ Makefile Wed Dec 24 04:31:37 2003 @@ -1,13 +1,15 @@ -bin_path = /sbin -etc_path = /etc +bin_path = ${PREFIX}/sbin +etc_path = ${PREFIX}/etc log_path = /var/log -install: +all: (cd src; make) +install: cp src/watchdogd $(bin_path) cp src/wd_ctl $(bin_path) cp src/wd_tester $(bin_path) - cp watchdog.conf $(etc_path) - mkdir $(log_path)/watchdog + cp watchdog.conf $(etc_path)/watchdog.conf.orig + if [ ! -e $(etc_path)/watchdog.conf ]; then cp $(etc_path)/watchdog.conf.orig $(etc_path)/watchdog.conf; fi + mkdir -p $(log_path)/watchdog