PROG = reflector CFLAGS = -Wall -I. -g -O0 all: $(PROG) clean: -rm -f *.o *~ proper: clean uninstall -rm -f $(PROG) xaal-$(PROG).service test: all ./$(PROG) -a 224.0.29.200 -p 1236 -r 1235 .PHONY: all clean proper test install uninstall svnignore .SUFFIXES: .service .service.in .svnignore: echo $(PROG).o $(PROG) xaal-$(PROG).service | tr ' ' '\012' > $@ svnignore: .svnignore svn propset svn:ignore -F $< . install: xaal-$(PROG).service $(PROG) sudo systemctl --system --now enable $(PWD)/$< xaal-%.service: %.service.in envsubst < $< > $@ uninstall: -if systemctl --system --quiet is-enabled xaal-$(PROG) &>/dev/null ; then \ sudo systemctl --system --now disable xaal-$(PROG) ; \ fi status: -sudo systemctl --system --no-pager -l status xaal-$(PROG)