]> wagnertech.de Git - projects.git/blobdiff - tools/make/makefile
posaune
[projects.git] / tools / make / makefile
index 7fadac917987682217a7bac0da09b6be8fa783af..01025348568cd759692a2cb4429d529fad66d14f 100644 (file)
@@ -12,7 +12,6 @@ DEB = fakeroot dpkg-deb --build $(project)
 project = default
 SOURCES =
 COPY_PRE =
-TEX = pdflatex
 
 # Load project specification
 include make.pre
@@ -29,7 +28,7 @@ include make.pre
 #
 #-----------------------------------------------------------------
 
-compile: compile.stamp
+compile: $(COMPILE_TARGET)
        # compile ist fertig
 
 zip: $(project).zip
@@ -41,7 +40,6 @@ deb: $(project).deb
 #-----------------------------------------------------------------
 # compile steps
 #-----------------------------------------------------------------
-
 compile.stamp: $(SOURCES)
        $(COMPILE)
        @touch compile.stamp
@@ -65,7 +63,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 +74,8 @@ clean:
        if [ -e $(project) ]; then rm -rf $(project); fi
 
 #-----------------------------------------------------------------
-# generische Regeln
+# Build-Regeln
 #-----------------------------------------------------------------
-%.pdf:%.tex
-       $(TEX) $<
+%.pdf : %.tex $(SOURCES)
+       pdflatex $<
 
--include make.post