aboutsummaryrefslogtreecommitdiff
path: root/devel/ice/files/patch-Makefile
blob: d6dda1c87496d35f83e0be83c0950258cad44d9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- Makefile.orig	Wed Aug  8 21:00:54 2007
+++ Makefile	Fri Sep 14 12:30:38 2007
@@ -11,7 +11,10 @@
 
 include $(top_srcdir)/config/Make.rules
 
-SUBDIRS		= config src include test demo slice doc
+SUBDIRS		= config src include test demo slice
+ifndef NOPORTDOCS
+SUBDIRS		+= doc
+endif
 
 INSTALL_SUBDIRS	= $(install_bindir) $(install_libdir) $(install_includedir) $(install_slicedir) $(install_docdir)
 
@@ -51,12 +54,14 @@
 	@( cd doc && $(MAKE) ) || exit 1
 
 install::
+ifndef NOPORTDOCS
 	@if test -d doc ; \
 	then \
 	    ( cd doc && $(MAKE) install ) || exit 1 ; \
 	fi
-	$(call installdata,ICE_LICENSE,$(prefix))
-	$(call installdata,LICENSE,$(prefix))
+	$(call installdata,ICE_LICENSE,$(install_docdir))
+	$(call installdata,LICENSE,$(install_docdir))
+endif
 
 clean::
 	@if test -d doc ; \