aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Biereigel <stefan@biereigel.de>2019-05-14 14:36:31 +0200
committerStefan Biereigel <stefan@biereigel.de>2019-05-14 14:36:31 +0200
commit6c9c78d4aa35d41b500d34e6b5c1c44756d9962d (patch)
tree99c60a1e7aa701fdcc49b2f89f8f74428727f22c /Makefile
parentc8c1df23a0ddf85b6d5a822299634b42b82a6e15 (diff)
downloadyosys-6c9c78d4aa35d41b500d34e6b5c1c44756d9962d.tar.gz
yosys-6c9c78d4aa35d41b500d34e6b5c1c44756d9962d.tar.bz2
yosys-6c9c78d4aa35d41b500d34e6b5c1c44756d9962d.zip
add mkdir for libyosys target, explicitly copy to target folder
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b51ffd4c8..0de8301a1 100644
--- a/Makefile
+++ b/Makefile
@@ -679,13 +679,14 @@ endif
$(INSTALL_SUDO) mkdir -p $(DESTDIR)$(DATDIR)
$(INSTALL_SUDO) cp -r share/. $(DESTDIR)$(DATDIR)/.
ifeq ($(ENABLE_LIBYOSYS),1)
- $(INSTALL_SUDO) cp libyosys.so $(DESTDIR)$(LIBDIR)
+ $(INSTALL_SUDO) mkdir -p $(DESTDIR)$(LIBDIR)
+ $(INSTALL_SUDO) cp libyosys.so $(DESTDIR)$(LIBDIR)/
$(INSTALL_SUDO) $(STRIP) -S $(DESTDIR)$(LIBDIR)/libyosys.so
$(INSTALL_SUDO) ldconfig
ifeq ($(ENABLE_PYOSYS),1)
$(INSTALL_SUDO) mkdir -p $(PYTHON_DESTDIR)/pyosys
- $(INSTALL_SUDO) cp libyosys.so $(PYTHON_DESTDIR)/pyosys
- $(INSTALL_SUDO) cp misc/__init__.py $(PYTHON_DESTDIR)/pyosys
+ $(INSTALL_SUDO) cp libyosys.so $(PYTHON_DESTDIR)/pyosys/
+ $(INSTALL_SUDO) cp misc/__init__.py $(PYTHON_DESTDIR)/pyosys/
endif
endif