Author: sparky
Date: Thu Mar 16 17:36:03 2006
New Revision: 7195

Modified:
   ppcrcd/trunk/Makefile
Log:
- generate documentation


Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile       (original)
+++ ppcrcd/trunk/Makefile       Thu Mar 16 17:36:03 2006
@@ -12,6 +12,8 @@
        -fno-reorder-blocks -fno-reorder-blocks-and-partition   \
        -fno-prefetch-loop-arrays -fno-tree-vect-loop-version
 
+DOCSRC = index AirPort2 chrp images netbooting opts progs usb_boot
+
 R = out/rpm/rpms
 P = out/rpm/prep
 
@@ -38,6 +40,7 @@
 
 INSTALL = $(addprefix out/rpm/installed/,$(I))
 POST_ = $(addprefix $(touch)/,$(POST))
+DOCS = $(addprefix out/docs/,$(addsuffix .html,$(DOCSRC)))
 
 $(ppcrcd_iso): $(cdroot) $(boot)/hfs.map files.sort
        $(SU) mkisofs \
@@ -150,7 +153,7 @@
        strip $@
        strip -R.comment $@
        
-$(root_stripped):      out/touch/root_installed conf.dir doc todel
+$(root_stripped):      out/touch/root_installed conf.dir $(DOCS) todel
        $(SU) rm -rf [EMAIL PROTECTED],.work}
        #
        mkdir -p [EMAIL PROTECTED]/dev
@@ -176,7 +179,7 @@
        $(SU) cp -dr conf.dir/* [EMAIL PROTECTED]
        $(SU) find [EMAIL PROTECTED] -name .svn | xargs $(SU) rm -rf
        $(SU) mkdir -p [EMAIL PROTECTED]/usr/share/doc/ppcrcd
-       $(SU) cp -r doc/* [EMAIL PROTECTED]/usr/share/doc/ppcrcd
+       $(SU) cp $(DOCS) [EMAIL PROTECTED]/usr/share/doc/ppcrcd
        #
        $(SU) sed -e 's/@_VERSION_@/$(VERSION)/g' \
                -i [EMAIL PROTECTED]/linuxrc
@@ -255,6 +258,14 @@
                $(BCOND-$(notdir $@)) $(BCOND)
        sleep 1 && touch $@
 
+out/docs/%.html:       doc/README.%
+       @mkdir -p out/docs
+       ./doc/gendoc.pl $< > $@
+
+out/docs/index.html:   doc/index.html
+       @mkdir -p out/docs
+       cat $< > $@
+
 out/rpm/SPECS/%.spec: out/touch/builder_prepared
        cd $(dir $@) && cvs up $(if $(REV-$(@:out/rpm/SPECS/%.spec=%)),-r \
                $(REV-$(@:out/rpm/SPECS/%.spec=%)),-A) $(notdir $@)
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to