2014-06-17 06:31:17 +00:00
|
|
|
# bpkg Makefile
|
2014-05-22 20:34:28 +00:00
|
|
|
|
2014-06-17 06:31:17 +00:00
|
|
|
BIN ?= bpkg
|
2014-05-22 20:34:28 +00:00
|
|
|
PREFIX ?= /usr/local
|
2014-06-17 06:31:17 +00:00
|
|
|
|
|
|
|
# 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
|
2014-09-23 00:06:01 +00:00
|
|
|
@echo " info: Installing $(PREFIX)/bin/$(BIN)..."
|
2014-06-17 06:31:17 +00:00
|
|
|
@install $(BIN) $(PREFIX)/bin
|
|
|
|
@for cmd in $(CMDS); do cp $(BIN)-$${cmd} $(PREFIX)/bin; done
|
2014-05-22 20:34:28 +00:00
|
|
|
|
|
|
|
uninstall:
|
2014-09-23 00:06:01 +00:00
|
|
|
@echo " info: Uninstalling $(PREFIX)/bin/$(BIN)..."
|
2014-06-17 06:31:17 +00:00
|
|
|
@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
|
2014-06-17 06:31:17 +00:00
|
|
|
@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
|
2014-06-17 06:31:17 +00:00
|
|
|
|