From 4d5b60cb558ae47b31b81cc5b2fec77dd51c9cdd Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Tue, 6 Mar 2018 14:36:50 -0700 Subject: [PATCH] Makefile: Use install to guarantee existance of the installation directory --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2ed7e67..f72d1d0 100644 --- a/Makefile +++ b/Makefile @@ -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