summaryrefslogtreecommitdiff
path: root/devel/py-ice/files/patch-py-python-Makefile
blob: 948ffc8e1348bed9ad5ba5c3ac7589439f2f5752 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- py/python/Makefile.orig	2010-07-11 13:05:38.000000000 +1000
+++ py/python/Makefile	2012-09-11 00:09:09.000000000 +2000
@@ -118,10 +118,11 @@
 
 install:: $(ALL_SRCS)
 	@echo "Installing generated code"
-	$(INSTALL_DATA) *.py $(install_pythondir)
+	$(INSTALL_DATA) *.py* $(install_pythondir)
 	@for i in $(PACKAGES) ; \
 	do \
-	    $(INSTALL_DATA) -r $$i $(install_pythondir) ; \
+	    mkdir -p $(install_pythondir)/$$i ; \
+	    $(INSTALL_DATA) $$i/*.py* $(install_pythondir)/$$i ; \
 	done
 
 depend::  $(ICE_SLICE) $(GLACIER2_SLICE) $(ICEBOX_SLICE) $(ICEGRID_SLICE) $(ICEPATCH2_SLICE) $(ICESTORM_SLICE)