2
0
mirror of https://github.com/bpkg/bpkg synced 2024-11-08 01:10:36 +00:00
bpkg/Makefile
Chris Carpita 9c537d7b73 Add command (show) to display package details from remote
- Use --details flag to print remote README.md
- Use --source flag to print scripts sources
2014-10-08 18:52:35 -04:00

25 lines
621 B
Makefile

# bpkg Makefile
BIN ?= bpkg
PREFIX ?= /usr/local
# All 'bpkg' supported commands
CMDS = json install package term suggest init utils update list show
install: uninstall
@echo " info: Installing $(PREFIX)/bin/$(BIN)..."
@install $(BIN) $(PREFIX)/bin
@for cmd in $(CMDS); do cp $(BIN)-$${cmd} $(PREFIX)/bin; done
uninstall:
@echo " info: Uninstalling $(PREFIX)/bin/$(BIN)..."
@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