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)
+INSERT_BUILD = projects/tools/make/insert_build.sh
#default parameters
project = default
#
#-----------------------------------------------------------------
-compile: compile.stamp
+compile: $(COMPILE_TARGET)
# compile ist fertig
zip: $(project).zip
deb: $(project).deb
# Debian package ready
+version: $(COMPILE_TARGET)
+ $(INSERT_BUILD) $(COMPILE_TARGET) $(build)
+
#-----------------------------------------------------------------
# compile steps
#-----------------------------------------------------------------
-
compile.stamp: $(SOURCES)
$(COMPILE)
@touch compile.stamp
#-----------------------------------------------------------------
# Build-Regeln
#-----------------------------------------------------------------
-%.pdf : %.tex
- pdflatex $<
+%.pdf : %.tex $(SOURCES)
+ pdflatex $< && pdflatex $<