[Lunar-commits] r15731 - lunar-doc/trunk/lunar-manual

Auke Kok sofar at lunar-linux.org
Wed Jul 13 09:42:47 UTC 2005


Author: sofar
Date: 2005-07-13 09:42:46 +0000 (Wed, 13 Jul 2005)
New Revision: 15731

Modified:
   lunar-doc/trunk/lunar-manual/Makefile
Log:
Cleaning up the Makefile a bit more: reduced the number of times that the target is used to 1.


Modified: lunar-doc/trunk/lunar-manual/Makefile
===================================================================
--- lunar-doc/trunk/lunar-manual/Makefile	2005-07-13 09:36:02 UTC (rev 15730)
+++ lunar-doc/trunk/lunar-manual/Makefile	2005-07-13 09:42:46 UTC (rev 15731)
@@ -18,8 +18,9 @@
 PDFVIEWER = acroread 
 DVIVIEWER = xdvizilla
 
+# The end result / main goal:
 TARGET = Lunar_Book
-DIRS = Theory
+DIRS = .
 
 FIGUREDIR = figures
 FIGUREMAKE = images.gnuplot
@@ -29,7 +30,7 @@
 
 all:	pdf
 
-Lunar_Book:	prebib bib postbib
+$(TARGET):	prebib bib postbib
 
 prebib:
 		@echo --------------------------------------------------------------------
@@ -47,26 +48,26 @@
 		latex $(TARGET)
 		latex $(TARGET)
 		
-ps: Lunar_Book
+ps: $(TARGET)
 		dvips $(TARGET).dvi -o $(TARGET).ps
 
 vps: ps
 		$(PSVIEWER) $(TARGET).ps
 
-pdf: Lunar_Book
+pdf: $(TARGET)
 		dvipdf $(TARGET).dvi 
 
 vpdf: pdf
 		$(PDFVIEWER) $(TARGET).pdf
 
-vdvi: Lunar_Book
+vdvi: $(TARGET)
 		$(DVIVIEWER) $(TARGET).dvi
 
 spell:
 		for i in *.tex; do aspell -t -c $$i; done
 
 clean: 		
-		($(FIND) ./ $(DIRS) \
+		($(FIND) $(DIRS) \
 		    -maxdepth 1 \
 		    -name "*.aux" -or \
 		    -name "*.log" -or \
@@ -105,7 +106,7 @@
 	@echo
 	@echo	"* (v)ps                (view) ps output"
 	@echo   "* (v)pdf               (view) pdf output"
-	@echo	"* Lunar_book           Make the Lunar_Book"
+	@echo	"* Lunar_book           Make the $(TARGET)"
 	@echo	"* clean                CLEAN UP THINGS!"
 	@echo	"* spell                Spell Check all files"
 	@echo 	"* commit               Commit to svn..."



More information about the Lunar-commits mailing list