CFLAGS+=-Wall -Wextra -Wpedantic CFLAGS+=-I/usr/include/lua5.3 LDLIBS+=-llua5.3 PREFIX?=/usr/local plop: main.o plop.o http.o response.o request.o http.o: http.h main.o: plop.h plop.o: http.h plop.h request.h response.h request.o: http.h request.h response.o: response.h plop.h: http.h request.h response.h: http.h clean: rm -f plop *.o install: plop mkdir -p $(PREFIX)/bin mkdir -p $(PREFIX)/share/man/man1 cp -f plop $(PREFIX)/bin cp -f plop.1 $(PREFIX)/share/man/man1 chmod 755 $(PREFIX)/bin/plop chmod 644 $(PREFIX)/share/man/man1/plop.1 uninstall: rm -f $(PREFIX)/bin/plop rm -f $(PREFIX)/share/man/man1/plop.1 .PHONY: clean install uninstall