]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - doc/Makefile
<rdar://problem/5792631> dependency cycle in cups-144 / PrintingCore-250 / Applicatio...
[thirdparty/cups.git] / doc / Makefile
index 197344c151b07a27236df8d47b42f96cc401caed..122d91561aba2eb1cafc30d6da2ce3edd5e0e755 100644 (file)
@@ -3,7 +3,7 @@
 #
 #   Documentation makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 2007 by Apple Inc.
+#   Copyright 2007-2008 by Apple Inc.
 #   Copyright 1997-2007 by Easy Software Products.
 #
 #   These coded instructions, statements, and computer programs are the
@@ -140,10 +140,17 @@ depend:
 
 
 #
-# Install all documentation files...
+# Install all targets...
 #
 
-install:       all $(INSTALL_LANGUAGES)
+install:       all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data:
        $(INSTALL_DIR) -m 755 $(DOCDIR)
        for file in $(WEBPAGES); do \
                $(INSTALL_MAN) $$file $(DOCDIR); \
@@ -159,16 +166,39 @@ install:  all $(INSTALL_LANGUAGES)
 
 install-languages:
        for lang in $(LANGUAGES); do \
-               $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \
-               if test -f $$lang/index.html; then \
+               if test -d $$lang; then \
+                       $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \
                        $(INSTALL_MAN) $$lang/index.html $(DOCDIR)/$$lang; \
-               fi; \
-               if test -f $$lang/cups.css; then \
-                       $(INSTALL_MAN) $$lang/cups.css $(DOCDIR)/$$lang; \
+                       $(INSTALL_MAN) $$lang/cups.css $(DOCDIR)/$$lang 2>/dev/null || true; \
+                       $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \
+                       for file in $(WEBIMAGES); do \
+                               $(INSTALL_MAN) $$lang/$$file $(DOCDIR)/$$lang/images 2>/dev/null || true; \
+                       done; \
                fi; \
        done
 
 
+#
+# Install programs...
+#
+
+install-exec:
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
+
+
 #
 # Unnstall all documentation files...
 #
@@ -178,10 +208,10 @@ uninstall: $(UNINSTALL_LANGUAGES)
                $(RM) $(DOCDIR)/$$file; \
        done
        for file in $(HELPFILES); do \
-               $(INSTALL_MAN) $(DOCDIR)/help/$$file; \
+               $(RM) $(DOCDIR)/$$file; \
        done
        for file in $(WEBIMAGES); do \
-               $(INSTALL_MAN) $(DOCDIR)/images/$$file; \
+               $(RM) $(DOCDIR)/$$file; \
        done
        -$(RMDIR) $(DOCDIR)/images
        -$(RMDIR) $(DOCDIR)/help
@@ -191,6 +221,9 @@ uninstall-languages:
        -for lang in $(LANGUAGES); do \
                $(RM) $(DOCDIR)/$$lang/index.html; \
                $(RM) $(DOCDIR)/$$lang/cups.css; \
+               for file in $(WEBIMAGES); do \
+                       $(RM) $(DOCDIR)/$$lang/$$file; \
+               done; \
                $(RMDIR) $(DOCDIR)/$$lang/images; \
                $(RMDIR) $(DOCDIR)/$$lang; \
        done