autodocs: use find+xargs to overcome command length limit,
authorMartin Vidner <mvidner@suse.cz>
Thu, 15 Jun 2006 15:49:31 +0000 (15:49 +0000)
committerMartin Vidner <mvidner@suse.cz>
Thu, 15 Jun 2006 15:49:31 +0000 (15:49 +0000)
do not call doxygen unnecessarily (#185334).

doc/autodoc/Makefile.am
package/libzypp.changes

index 0e48cf7..d526831 100644 (file)
@@ -3,13 +3,17 @@
 
 htmldir =      @pkgdocdir@/autodocs
 
-html_DATA =    @PACKAGE@.doxytag $(wildcard html/*)
+html_DATA =    @PACKAGE@.doxytag
 
-## ##################################################
+# lots of files -> xargs
+# (-hook runs _after_ the regular targets which means the dir already exists)
+install-data-hook:
+       find html -mindepth 1 | xargs $(INSTALL_DATA) --target-directory=$(DESTDIR)$(htmldir)
 
-.PHONY:        always
+## ##################################################
 
-@PACKAGE@.doxytag: Doxyfile always
+# touch Doxyfile (or just make clean) to remake the html docs
+@PACKAGE@.doxytag: Doxyfile
        @DOCGEN@
 
 ## ##################################################
@@ -17,6 +21,6 @@ html_DATA =   @PACKAGE@.doxytag $(wildcard html/*)
 CLEANFILES = $(html_DATA)
 
 clean-local:
-       -rmdir html
+       -rm -rf html
 
 ## ##################################################
index a8c87bd..bb0b8c1 100644 (file)
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Jun 15 17:53:40 CEST 2006 - mvidner@suse.cz
+
+- autodocs: use find+xargs to overcome command length limit,
+  do not call doxygen unnecessarily (#185334).
+
+-------------------------------------------------------------------
 Thu Jun 15 07:26:29 CEST 2006 - kkaempf@suse.de
 
 - Dont use getZYpp in static constructor (#185198)