Add "mkdir -p" to "make install"
authorClifford Wolf <clifford@clifford.at>
Wed, 7 Mar 2018 11:31:56 +0000 (12:31 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 7 Mar 2018 11:31:56 +0000 (12:31 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Makefile

index 2ed7e6755773b256d2dc5f004b095dff08272fda..689db679d45c5b5dd3e25143ef055fa7a7349921 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,8 @@ help:
        @echo ""
 
 install:
+       mkdir -p $(DESTDIR)$(PREFIX)/bin
+       mkdir -p $(DESTDIR)$(PREFIX)/share/yosys/python3
        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