[Lunar-commits] r15627 - lunar-doc/trunk/lunar-manual
ca3sar
ca3sar at lunar-linux.org
Thu Jul 7 10:58:22 UTC 2005
Author: ca3sar
Date: 2005-07-07 10:58:19 +0000 (Thu, 07 Jul 2005)
New Revision: 15627
Added:
lunar-doc/trunk/lunar-manual/Makefile
Log:
Adding Makefile
Added: lunar-doc/trunk/lunar-manual/Makefile
===================================================================
--- lunar-doc/trunk/lunar-manual/Makefile 2005-07-07 10:05:46 UTC (rev 15626)
+++ lunar-doc/trunk/lunar-manual/Makefile 2005-07-07 10:58:19 UTC (rev 15627)
@@ -0,0 +1,27 @@
+#Makefile for compiling the lunar-manual.
+#Produces pdf file from tex source code, and converts the .ps in IDIR in .pdf
+#This is my first work with make, im sure u guys can do it better than that :)
+
+PROJECT=Lunar_Book
+IDIR=image
+PSPICS:=$(wildcard ./$(IDIR)/*.ps)
+PDFPICS:=$(patsubst %.ps,%.pdf,$(wildcard ./$(IDIR)/*.ps))
+
+$(PROJECT).pdf:$(PROJECT).tex
+ pdflatex $? $@, pdflatex $? $@ #run two times for references
+
+%pdf:%ps
+ ps2pdf $? $@
+
+all: $(PDFPICS) $(PROJECT).pdf
+
+pics: $(PDFPICS)
+
+
+clean:
+ rm $(PDFPICS) \
+ rm *.aux \
+ rm *.log \
+ rm *.toc \
+ rm $(PROJECT).pdf
+
More information about the Lunar-commits
mailing list