BIN ?= bpkg PREFIX ?= /usr/local CMDS = json install package term install: uninstall install $(BIN) $(PREFIX)/bin for cmd in $(CMDS); do cp $(BIN)-$${cmd} $(PREFIX)/bin; done uninstall: rm -f $(PREFIX)/bin/$(BIN) for cmd in $(CMDS); do rm -f $(PREFIX)/bin/$(BIN)-$${cmd}; done link: uninstall ln -s $(BIN) $(PREFIX)/bin/$(BIN) for cmd in $(CMDS); do ln -s $(BIN)-$${cmd} $(PREFIX)/bin; done unlink: uninstall