Improve make install/uninstall targets
This commit is contained in:
parent
eea483191f
commit
16c7f02375
5
Makefile
5
Makefile
|
@ -1,3 +1,4 @@
|
||||||
|
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
|
||||||
BIN := ./_build/default/bin/main.exe
|
BIN := ./_build/default/bin/main.exe
|
||||||
|
|
||||||
default: boot.exe
|
default: boot.exe
|
||||||
|
@ -7,10 +8,10 @@ boot.exe: bootstrap.ml
|
||||||
ocaml bootstrap.ml
|
ocaml bootstrap.ml
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(BIN) install
|
$(BIN) install $(INSTALL_ARGS)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(BIN) uninstall
|
$(BIN) uninstall $(INSTALL_ARGS)
|
||||||
|
|
||||||
reinstall: uninstall reinstall
|
reinstall: uninstall reinstall
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue