PROG = feedback-renderer CFLAGS = -Wall -I. -g -O0 LDLIBS = -L. -lxaal -lcbor -luuid -lsodium SHELL = /bin/bash all: $(PROG) clean: -rm -f *.o *~ proper: clean uninstall -rm -f $(PROG) xaal-$(PROG).service test: $(PROG) -LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret -i ./via_upnpav.sh test2: $(PROG) -LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1236 -s my_secret -i ./via_phone.tcl test3: $(PROG) -LD_LIBRARY_PATH+=:. ./$(PROG) -a 224.0.29.200 -p 1235 -s xaal -i ./via_tts.sh Makefile.dep: $(PROG).c $(CC) $(CFLAGS) -MM $^ > $@ include Makefile.dep .svnignore: echo $(PROG).o $(PROG) xaal-$(PROG).service | tr ' ' '\012' > $@ svnignore: .svnignore svn propset svn:ignore -F $< . .PHONY: all clean proper install uninstall svnignore test test2 test3 .SUFFIXES: .service .service.in 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)