1 # Generic makefile for mBuild build process
3 # defile default operations
5 NOP = @echo "No operation for target $@"
8 ZIP = zip -r $(project).zip $(project)
9 DEB = fakeroot dpkg-deb --build $(project)
16 # Load project specification
19 .SUFFIXES: .stamp .zip
22 #-----------------------------------------------------------------
25 # : ohne Parameter wird compiliert
26 # - zip : packt ZIP file
27 # - deb : packt Debian package
29 #-----------------------------------------------------------------
31 compile: $(COMPILE_TARGET)
38 # Debian package ready
40 #-----------------------------------------------------------------
42 #-----------------------------------------------------------------
43 compile.stamp: $(SOURCES)
47 #-----------------------------------------------------------------
49 #-----------------------------------------------------------------
51 copy.stamp: $(COPY_PRE)
55 control.stamp: $(project).control
56 mkdir -p $(project)/DEBIAN
57 cp $(project).control $(project)/DEBIAN/control
58 if [ -f $(project).postinst ]; then cp $(project).postinst $(project)/DEBIAN/postinst; fi
61 $(project).zip: copy.stamp $(project)
64 $(project).deb: copy.stamp control.stamp
66 cp $(project).deb $(project)_$(version)$(_arch).deb
68 #-----------------------------------------------------------------
70 #-----------------------------------------------------------------
72 -rm *.stamp 2>/dev/null
73 if [ -e $(project).zip ]; then rm $(project).zip; fi
74 if [ -e $(project) ]; then rm -rf $(project); fi
76 #-----------------------------------------------------------------
78 #-----------------------------------------------------------------
79 %.pdf : %.tex $(SOURCES)