X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/blobdiff_plain/c9b0630e680308a6389cdf758bb677d811a2d05b..c8af998eae0c5d2dab14d5e36cccb9d9b6f60d0c:/tools/make/makefile diff --git a/tools/make/makefile b/tools/make/makefile index 7fadac9..6513f24 100644 --- a/tools/make/makefile +++ b/tools/make/makefile @@ -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