[svn:parrot] r45584 - in trunk: config/gen/makefiles docs

gerd at svn.parrot.org gerd at svn.parrot.org
Mon Apr 12 05:02:14 UTC 2010


Author: gerd
Date: Mon Apr 12 05:02:14 2010
New Revision: 45584
URL: https://trac.parrot.org/parrot/changeset/45584

Log:
Delete the separate makefile: docs/Makefile.pdf
For that the target 'pdf' in now added in the general docs-Makefile

Deleted:
   trunk/docs/Makefile.pdf
Modified:
   trunk/config/gen/makefiles/docs.in

Modified: trunk/config/gen/makefiles/docs.in
==============================================================================
--- trunk/config/gen/makefiles/docs.in	Mon Apr 12 04:33:36 2010	(r45583)
+++ trunk/config/gen/makefiles/docs.in	Mon Apr 12 05:02:14 2010	(r45584)
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2006, Parrot Foundation.
+# Copyright (C) 2001-2010, Parrot Foundation.
 # $Id$
 
 # Setup of some commands
@@ -11,6 +11,9 @@
 PERLDOC_BIN = @perldoc@
 VERSION = @VERSION@@DEVEL@
 
+# chapters in the generated PDF parrot book
+CHAPTERS = $(PERL) ../tools/docs/filename_and_chapter.pl --b_out
+
 # long list of .pod files
 POD = @TEMP_pod@
 
@@ -50,6 +53,21 @@
 html: all
 	$(PERL) -I../lib ../tools/docs/write_docs.pl --silent --version=$(VERSION)
 
+# The pdf target is to generate a parrot PDF document. 
+# It will not work on Windows. It call a script which use a specific Unix
+# command. May be that will be changed.
+pdf: ../tools/docs/book-to-latex.pl ../tools/docs/filename_and_chapter.pl
+	$(MKPATH) build/modified_pod
+	$(PERL) ../tools/docs/filename_and_chapter.pl
+	$(PERL) ../tools/docs/book-to-latex.pl `$(CHAPTERS)` > build/parrot-book.tex
+	cd build && pdflatex parrot-book.tex && pdflatex parrot-book.tex
+
+#pdf-release: build/parrot-book.pdf
+#	cp build/parrot-book.pdf build/parrot-book-$$(date +"%Y.%m").pdf
+
+pdf-clean:
+	$(RM_RF) build	
+
 html-clean:
 	$(RM_RF) html
 

Deleted: trunk/docs/Makefile.pdf
==============================================================================
--- trunk/docs/Makefile.pdf	Mon Apr 12 05:02:14 2010	(r45583)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,28 +0,0 @@
-#
-# This makefile is to generate a parrot PDF document. You can use it with:
-#  > make -f Makefile.pdf
-#  > make -f Makefile.pdf <target>
-# It will not work on Windows. It call a script which use a specific Unix
-# command. May be that will be changed.
-#
-PERL  		 = /usr/bin/perl
-MKPATH           = $(PERL) -MExtUtils::Command -e mkpath
-CHAPTERS         = $(shell $(PERL) ../tools/docs/filename_and_chapter.pl --print)
-M_CHAPTERS       = $(shell $(PERL) ../tools/docs/filename_and_chapter.pl --b_out)
-
-
-default: build/parrot-book.pdf
-
-release: build/parrot-book.pdf
-	cp build/parrot-book.pdf build/parrot-book-$$(date +"%Y.%m").pdf
-
-build/parrot-book.pdf: $(CHAPTERS) ../tools/docs/book-to-latex.pl
-	$(MKPATH) build/modified_pod
-	$(PERL) ../tools/docs/filename_and_chapter.pl
-	$(PERL) ../tools/docs/book-to-latex.pl $(M_CHAPTERS) > build/parrot-book.tex
-	cd build && pdflatex parrot-book.tex && pdflatex parrot-book.tex
-
-clean: 
-	rm -rf build
-
-# vim: set noexpandtab


More information about the parrot-commits mailing list