summaryrefslogtreecommitdiff
path: root/devel/ice/files/patch-python-python-Makefile
blob: 8672536246a0022417b47ac158d7e26cdbf789ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- python/python/Makefile.orig	2019-08-12 19:54:18 UTC
+++ python/python/Makefile
@@ -146,10 +146,11 @@ IceStorm_%_ice.py: $(slicedir)/IceStorm/%.ice $(SLICEP
 
 install:: $(ALL_SRCS)
 	@echo "Installing generated code"
-	$(INSTALL_DATA) *.py $(DESTDIR)$(install_pythondir)
+	$(INSTALL_DATA) *.py* $(DESTDIR)$(install_pythondir)
 	@for i in $(PACKAGES) ; \
 	do \
-	    $(INSTALL_DATA) -r $$i $(DESTDIR)$(install_pythondir) ; \
+	    mkdir -p $(DESTDIR)$(install_pythondir)/$$i ; \
+	    $(INSTALL_DATA) $$i/*.py* $(DESTDIR)$(install_pythondir)/$$i ; \
 	done
 
 clean::