3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-23 21:35:31 +00:00

Makefile: Use install to guarantee existance of the installation directory

This commit is contained in:
Joel Holdsworth 2018-03-06 14:36:50 -07:00
parent f6ab848797
commit 4d5b60cb55

View file

@ -15,7 +15,7 @@ help:
@echo ""
install:
cp sbysrc/sby_*.py $(DESTDIR)$(PREFIX)/share/yosys/python3/
install -D -t $(DESTDIR)$(PREFIX)/share/yosys/python3/ sbysrc/sby_*.py
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