ppcrcd/trunk/Makefile
sparky
cvs at pld-linux.org
Thu Mar 16 17:36:05 CET 2006
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 $@{,.work}
#
mkdir -p $@.work/dev
@@ -176,7 +179,7 @@
$(SU) cp -dr conf.dir/* $@.work
$(SU) find $@.work -name .svn | xargs $(SU) rm -rf
$(SU) mkdir -p $@.work/usr/share/doc/ppcrcd
- $(SU) cp -r doc/* $@.work/usr/share/doc/ppcrcd
+ $(SU) cp $(DOCS) $@.work/usr/share/doc/ppcrcd
#
$(SU) sed -e 's/@_VERSION_@/$(VERSION)/g' \
-i $@.work/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 $@)
More information about the pld-cvs-commit
mailing list