BIN=/usr/sbin MAN=/usr/share/man/man8 INITD=/etc/init.d all: /etc/arlogd.conf ${BIN}/arlogd-server ${MAN}/arlogd.8.gz /etc/init.d/arlogd-server test service /etc/arlogd.conf : touch $@ ${BIN}/arlogd-server : arlogd-server cp $< $@ chmod 755 $@ ${MAN}/arlogd.8.gz : arlogd.8 gzip -c $< > $@ chmod 755 $@ /etc/init.d/arlogd-server : init.d/arlogd-server cp $< $@ chmod 755 $@ test : @echo "***" testing arlogd-server with -c /dev/null perl arlogd-server -t -c /dev/null @echo @echo "***" testing ${BIN}/arlogd-server -t ${BIN}/arlogd-server -t service : @echo installing with chkconfig ... @chkconfig --list arlogd-server > /dev/null 2>&1 && echo DONE && exit 1 chkconfig --add arlogd-server chkconfig arlogd-server on @echo "start service with : /etc/init.d/arlogd-server start"