PROG = tts 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 Makefile.dep: $(PROG).c $(CC) $(CFLAGS) -MM $^ > $@ include Makefile.dep .PHONY: all clean proper svnignore install uninstall status .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)