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