From: Clifford Wolf Date: Wed, 17 Jan 2018 13:35:46 +0000 (+0100) Subject: Add DESTDIR and PREFIX to Makefile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b730e777970cab7e6f1cd5925f7b1c47a05e47f;p=SymbiYosys.git Add DESTDIR and PREFIX to Makefile --- diff --git a/Makefile b/Makefile index 48f4647..2ed7e67 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ +DESTDIR = +PREFIX = /usr/local + help: @echo "" @echo "sudo make install" @@ -12,9 +15,9 @@ help: @echo "" install: - cp sbysrc/sby_*.py /usr/local/share/yosys/python3/ - sed 's|##yosys-sys-path##|sys.path += [os.path.dirname(__file__) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' < sbysrc/sby.py > /usr/local/bin/sby - chmod +x /usr/local/bin/sby + cp sbysrc/sby_*.py $(DESTDIR)$(PREFIX)/share/yosys/python3/ + sed 's|##yosys-sys-path##|sys.path += [os.path.dirname(__file__) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' < sbysrc/sby.py > $(DESTDIR)$(PREFIX)/bin/sby + chmod +x $(DESTDIR)$(PREFIX)/bin/sby html: make -C docs html