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)
#
#-----------------------------------------------------------------
-compile: compile.stamp
+compile: $(COMPILE_TARGET)
# compile ist fertig
zip: $(project).zip
#-----------------------------------------------------------------
# compile steps
#-----------------------------------------------------------------
-
compile.stamp: $(SOURCES)
$(COMPILE)
@touch compile.stamp
$(project).deb: copy.stamp control.stamp
$(DEB)
- cp $(project).deb $(project)_$(version).deb
+ cp $(project).deb $(project)_$(version)$(_arch).deb
#-----------------------------------------------------------------
# utilities
if [ -e $(project).zip ]; then rm $(project).zip; fi
if [ -e $(project) ]; then rm -rf $(project); fi
+#-----------------------------------------------------------------
+# Build-Regeln
+#-----------------------------------------------------------------
+%.pdf : %.tex $(SOURCES)
+ pdflatex $<
+