3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-06 14:24:08 +00:00

Add DESTDIR and PREFIX to Makefile

This commit is contained in:
Clifford Wolf 2018-01-17 14:35:46 +01:00
parent 25936009bb
commit 6b730e7779

View file

@ -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