]> wagnertech.de Git - projects.git/blobdiff - tools/make/makefile
trompete
[projects.git] / tools / make / makefile
index 7fadac917987682217a7bac0da09b6be8fa783af..6513f24e4b201839291ed5b4d77e7acaf09d6abf 100644 (file)
@@ -4,6 +4,7 @@
 
 NOP = @echo "No operation for target $@"
 COMPILE = $(NOP)
+COMPILE_TARGET = compile.stamp
 COPY = $(NOP)
 ZIP = zip -r $(project).zip $(project)
 DEB = fakeroot dpkg-deb --build $(project)
@@ -12,7 +13,6 @@ DEB = fakeroot dpkg-deb --build $(project)
 project = default
 SOURCES =
 COPY_PRE =
-TEX = pdflatex
 
 # Load project specification
 include make.pre
@@ -29,7 +29,7 @@ include make.pre
 #
 #-----------------------------------------------------------------
 
-compile: compile.stamp
+compile: $(COMPILE_TARGET)
        # compile ist fertig
 
 zip: $(project).zip
@@ -41,7 +41,6 @@ deb: $(project).deb
 #-----------------------------------------------------------------
 # compile steps
 #-----------------------------------------------------------------
-
 compile.stamp: $(SOURCES)
        $(COMPILE)
        @touch compile.stamp
@@ -65,7 +64,7 @@ $(project).zip: copy.stamp $(project)
 
 $(project).deb: copy.stamp control.stamp
        $(DEB)
-       cp $(project).deb $(project)_$(version).deb
+       cp $(project).deb $(project)_$(version)$(_arch).deb
 
 #-----------------------------------------------------------------
 # utilities
@@ -76,9 +75,8 @@ clean:
        if [ -e $(project) ]; then rm -rf $(project); fi
 
 #-----------------------------------------------------------------
-# generische Regeln
+# Build-Regeln
 #-----------------------------------------------------------------
-%.pdf:%.tex
-       $(TEX) $<
+%.pdf : %.tex $(SOURCES)
+       pdflatex $<
 
--include make.post