2
0
mirror of https://github.com/bpkg/bpkg synced 2024-11-08 01:10:36 +00:00
bpkg/Makefile

25 lines
598 B
Makefile
Raw Normal View History

# bpkg Makefile
2014-05-22 20:34:28 +00:00
BIN ?= bpkg
2014-05-22 20:34:28 +00:00
PREFIX ?= /usr/local
# All 'bpkg' supported commands
2014-06-16 22:51:14 +00:00
CMDS = json install package term suggest init
2014-05-22 20:34:28 +00:00
install: uninstall
@echo " info: Installing $(PREFIX)/bin/$(BIN)..."
@install $(BIN) $(PREFIX)/bin
@for cmd in $(CMDS); do cp $(BIN)-$${cmd} $(PREFIX)/bin; done
2014-05-22 20:34:28 +00:00
uninstall:
@echo " info: Uninstalling $(PREFIX)/bin/$(BIN)..."
@rm -f $(PREFIX)/bin/$(BIN)
@for cmd in $(CMDS); do rm -f $(PREFIX)/bin/$(BIN)-$${cmd}; done
2014-05-22 20:34:28 +00:00
link: uninstall
@ln -s $(BIN) $(PREFIX)/bin/$(BIN)
@for cmd in $(CMDS); do ln -s $(BIN)-$${cmd} $(PREFIX)/bin; done
2014-05-22 20:34:28 +00:00
unlink: uninstall