2
0
mirror of https://github.com/bpkg/bpkg synced 2024-11-17 21:26:01 +00:00
bpkg/Makefile

19 lines
420 B
Makefile
Raw Normal View History

2014-05-22 20:34:28 +00:00
BIN ?= bpkg
PREFIX ?= /usr/local
2014-05-24 17:05:32 +00:00
CMDS = json install package term
2014-05-22 20:34:28 +00:00
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