projects
/
projects.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epic-ts
[projects.git]
/
tools
/
make
/
makefile
diff --git
a/tools/make/makefile
b/tools/make/makefile
index
8b83ff7
..
57dc39d
100644
(file)
--- a/
tools/make/makefile
+++ b/
tools/make/makefile
@@
-4,9
+4,11
@@
NOP = @echo "No operation for target $@"
COMPILE = $(NOP)
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)
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
#default parameters
project = default
@@
-28,7
+30,7
@@
include make.pre
#
#-----------------------------------------------------------------
#
#-----------------------------------------------------------------
-compile:
compile.stamp
+compile:
$(COMPILE_TARGET)
# compile ist fertig
zip: $(project).zip
# compile ist fertig
zip: $(project).zip
@@
-37,10
+39,12
@@
zip: $(project).zip
deb: $(project).deb
# Debian package ready
deb: $(project).deb
# Debian package ready
+version: $(COMPILE_TARGET)
+ $(INSERT_BUILD) $(COMPILE_TARGET) $(build)
+
#-----------------------------------------------------------------
# compile steps
#-----------------------------------------------------------------
#-----------------------------------------------------------------
# compile steps
#-----------------------------------------------------------------
-
compile.stamp: $(SOURCES)
$(COMPILE)
@touch compile.stamp
compile.stamp: $(SOURCES)
$(COMPILE)
@touch compile.stamp
@@
-50,13
+54,16
@@
compile.stamp: $(SOURCES)
#-----------------------------------------------------------------
copy.stamp: $(COPY_PRE)
#-----------------------------------------------------------------
copy.stamp: $(COPY_PRE)
- $(COPY) $(project)
+ $(COPY) $(project)
$(version) ${arch}
@touch copy.stamp
control.stamp: $(project).control
mkdir -p $(project)/DEBIAN
cp $(project).control $(project)/DEBIAN/control
@touch copy.stamp
control.stamp: $(project).control
mkdir -p $(project)/DEBIAN
cp $(project).control $(project)/DEBIAN/control
+ if [ -f $(project).preinst ]; then cp $(project).preinst $(project)/DEBIAN/preinst; fi
if [ -f $(project).postinst ]; then cp $(project).postinst $(project)/DEBIAN/postinst; fi
if [ -f $(project).postinst ]; then cp $(project).postinst $(project)/DEBIAN/postinst; fi
+ if [ -f $(project).prerm ]; then cp $(project).prerm $(project)/DEBIAN/prerm; fi
+ if [ -f $(project).postrm ]; then cp $(project).postrm $(project)/DEBIAN/postrm; fi
@touch control.stamp
$(project).zip: copy.stamp $(project)
@touch control.stamp
$(project).zip: copy.stamp $(project)
@@
-64,7
+71,7
@@
$(project).zip: copy.stamp $(project)
$(project).deb: copy.stamp control.stamp
$(DEB)
$(project).deb: copy.stamp control.stamp
$(DEB)
- cp $(project).deb $(project)_$(version).deb
+ cp $(project).deb $(project)_$(version)
$(_arch)
.deb
#-----------------------------------------------------------------
# utilities
#-----------------------------------------------------------------
# utilities
@@
-74,3
+81,9
@@
clean:
if [ -e $(project).zip ]; then rm $(project).zip; fi
if [ -e $(project) ]; then rm -rf $(project); fi
if [ -e $(project).zip ]; then rm $(project).zip; fi
if [ -e $(project) ]; then rm -rf $(project); fi
+#-----------------------------------------------------------------
+# Build-Regeln
+#-----------------------------------------------------------------
+%.pdf : %.tex $(SOURCES)
+ pdflatex $< && pdflatex $<
+