You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bpkg/Makefile

25 lines
616 B
Makefile

# bpkg Makefile
10 years ago
BIN ?= bpkg
10 years ago
PREFIX ?= /usr/local
# All 'bpkg' supported commands
CMDS = json install package term suggest init utils update list
10 years ago
install: uninstall
@echo " info: Installing $(PREFIX)/bin/$(BIN)..."
@install $(BIN) $(PREFIX)/bin
@for cmd in $(CMDS); do cp $(BIN)-$${cmd} $(PREFIX)/bin; done
10 years ago
uninstall:
@echo " info: Uninstalling $(PREFIX)/bin/$(BIN)..."
@rm -f $(PREFIX)/bin/$(BIN)
@for cmd in $(CMDS); do rm -f $(PREFIX)/bin/$(BIN)-$${cmd}; done
10 years ago
link: uninstall
@ln -s $(BIN) $(PREFIX)/bin/$(BIN)
@for cmd in $(CMDS); do ln -s $(BIN)-$${cmd} $(PREFIX)/bin; done
10 years ago
unlink: uninstall