1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# licenser PREFIX ?= /usr .PHONY: def install uninstall def: @echo "run 'make install' to install" @echo "run 'make uninstall' to uninstall" install: licenser install -D $< $(DESTDIR)$(PREFIX)/bin uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/licenser