ppcrcd/trunk: Makefile doc/index.html

sparky cvs at pld-linux.org
Fri Mar 24 15:08:12 CET 2006


Author: sparky
Date: Fri Mar 24 15:08:06 2006
New Revision: 7307

Modified:
   ppcrcd/trunk/Makefile
   ppcrcd/trunk/doc/index.html
Log:
- docs index generation


Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile	(original)
+++ ppcrcd/trunk/Makefile	Fri Mar 24 15:08:06 2006
@@ -13,7 +13,7 @@
 	-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 net bonus
+DOCSRC	= images opts netbooting usb_boot chrp progs bonus net AirPort2
 YDOCSRC	= images opts
 
 R = out/rpm/rpms
@@ -42,7 +42,7 @@
 
 INSTALL = $(addprefix out/rpm/installed/,$(I))
 POST_ = $(addprefix $(touch)/,$(POST))
-DOCS = $(addprefix out/docs/,$(addsuffix .html,$(DOCSRC)))
+DOCS = $(addprefix out/docs/,$(addsuffix .html,index $(DOCSRC)))
 YDOCS = $(addprefix out/docs/,$(addsuffix .hlp,$(YDOCSRC)))
 
 $(ppcrcd_iso):	$(cdroot) $(boot)/hfs.map files.sort
@@ -283,6 +283,15 @@
 out/docs/index.html:	doc/index.html
 	@mkdir -p out/docs
 	cat $< > $@
+	for DOC in $(DOCSRC); do			\
+		echo "<div>";				\
+		echo "	<a href=\"$$DOC.html\">";	\
+		{ head -n1 doc/README.$$DOC || kill $$$$; } | sed 's/===//g'; \
+		echo "	</a>";				\
+		echo "</div>";				\
+	done >> $@
+	echo "	</body>" >> $@
+	echo "</head>" >> $@
 
 out/docs/%.hlp:	out/docs/%.html
 	elinks -dump $< > $@
@@ -394,14 +403,15 @@
 	done;							\
 	cd out/rpm/SOURCES/ && du -shc $$LIST && rm -v $$LIST
 
-.PHONY:	%/
+.PHONY:	%/ \./%
 %/:	%
+\./%:	%
 	
 # don't delete anything
 .SECONDARY:
 
 .DELETE_ON_ERROR: $(ppcrcd_iso) $(ppcrcd_sqf) $(initrd_sqf) \
-		$(vmlinuz) $(vmlinux)
+		$(vmlinuz) $(vmlinux) out/docs/index.html
 	
 .NOTPARALLEL:
 

Modified: ppcrcd/trunk/doc/index.html
==============================================================================
--- ppcrcd/trunk/doc/index.html	(original)
+++ ppcrcd/trunk/doc/index.html	Fri Mar 24 15:08:06 2006
@@ -1,4 +1,3 @@
-
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
 <html>
@@ -8,51 +7,3 @@
 	</head>
 	<body>
 		<h1>some ppcrcd README files</h1>
-
-		<div>
-			<a href="images.html">
-				Aliases for kernel image, its functionality and options
-			</a>
-		</div>
-		<div>
-			<a href="opts.html">
-				PPCRCD kernel command-line options
-			</a>
-		</div>
-		<div>
-			<a href="netbooting.html">
-				Booting from network
-			</a>
-		</div>
-		<div>
-			<a href="usb_boot.html">
-				Booting from usb-storage device
-			</a>
-		</div>
-		<div>
-			<a href="chrp.html">
-				Booting on Pegasos 2
-			</a>
-		</div>
-		<div>
-			<a href="progs.html">
-				PPCRCD-specific programs
-			</a>
-		</div>
-		<div>
-			<a href="bonus.html">
-				Bonus files
-			</a>
-		</div>
-		<div>
-			<a href="net.html">
-				Networking in PPCRCD
-			</a>
-		</div>
-		<div>
-			<a href="AirPort2.html">
-				Fast AirPort 2 reference
-			</a>
-		</div>
-	</body>
-</html>


More information about the pld-cvs-commit mailing list