#
# 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
help/api-filedir.html \
help/api-filter.html \
help/api-httpipp.html \
+ help/api-overview.html \
help/api-ppd.html \
help/api-raster.html \
help/cgi.html \
#
-# 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); \
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...
#
$(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
-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