mirror of https://github.com/bpkg/bpkg
Get rid of the dependency on "make" to install "bpkg"
Rename install.sh to setup.sh in order to take the Makefile targets. Former make target names are now passed to the script like $ ./setup.sh uninstall Fixes #45.pull/46/head
parent
3c6a141444
commit
bff2fde9c9
@ -1,24 +0,0 @@
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue