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)
17 # Load project specification
20 .SUFFIXES: .stamp .zip
23 #-----------------------------------------------------------------
26 # : ohne Parameter wird compiliert
27 # - zip : packt ZIP file
28 # - deb : packt Debian package
30 #-----------------------------------------------------------------
32 compile: compile.stamp
39 # Debian package ready
41 #-----------------------------------------------------------------
43 #-----------------------------------------------------------------
45 compile.stamp: $(SOURCES)
49 #-----------------------------------------------------------------
51 #-----------------------------------------------------------------
53 copy.stamp: $(COPY_PRE)
57 control.stamp: $(project).control
58 mkdir -p $(project)/DEBIAN
59 cp $(project).control $(project)/DEBIAN/control
60 if [ -f $(project).postinst ]; then cp $(project).postinst $(project)/DEBIAN/postinst; fi
63 $(project).zip: copy.stamp $(project)
66 $(project).deb: copy.stamp control.stamp
68 cp $(project).deb $(project)_$(version).deb
70 #-----------------------------------------------------------------
72 #-----------------------------------------------------------------
74 -rm *.stamp 2>/dev/null
75 if [ -e $(project).zip ]; then rm $(project).zip; fi
76 if [ -e $(project) ]; then rm -rf $(project); fi
78 #-----------------------------------------------------------------
80 #-----------------------------------------------------------------