3 # Generic rules for mBuild build process
5 # defile default operations
6 NOP = @echo "No operation for target $@"
7 DEB = fakeroot dpkg-deb --build debian/tmp
9 include debian/rules.pre
12 echo "no default rule available"
14 # Löschen aller kompilierten, erzeugten und nicht benötigten Dateien im Bauverzeichnis
18 # Bauen der kompilierten Programme und formatierten Dokumente aus den Quellen im Bauverzeichnis
19 build: debian/$(paket).build sync
26 # Bauen der kompilierten architekturabhängigen Programme aus den Quellen im Bauverzeichnis
29 # Bauen der architekturunabhängigen formatierten Dokumente aus den Quellen im Bauverzeichnis
32 # Installieren der Dateien in einen Verzeichnisbaum unterhalb des Verzeichnisses debian für jedes Binärpaket. Falls sie festgelegt wurden, hängen binary*-Ziele effektiv von diesem Ziel ab (optional)
35 # Erstellen aller Binärpakete (effektiv ist dies die Kombination der binary-arch- und binary-indep-Ziele)
36 binary: binary-arch binary-indep
38 # Erstellen Architektur-abhängiger (Architecture: any) Binärpakete im übergeordneten Verzeichnis
41 # Erstellen Architektur-unabhängiger (Architecture: all) Binärpakete im übergeordneten Verzeichnis
42 binary-indep: copy ../$(paket)_$(version)-$(build)$(_arch).deb
45 $(INSERT_BUILD) $(TARGET) $(build)
51 bash -c 'for dirs in $$(ls); do rsync -av $$dirs ../build; done'
53 copy: debian/$(paket).cp
54 debian/$(paket).cp debian/tmp
56 ../$(paket)_$(version)-$(build)$(_arch).deb:debian/tmp/DEBIAN/control $(add_inst_tgt)
58 mv debian/tmp.deb ../$(paket)_$(version)-$(build)$(_arch).deb
60 debian/tmp/DEBIAN/control: debian/control debian/changelog
63 debian/changelog: debian/$(paket).changelog debian/setenv.sh
64 sed "s/%BUILD%/$(build)/" debian/$(paket).changelog > debian/changelog
65 # echo "${pwd} (${build}) unstable; urgency=medium" > debian/changelog
66 # echo " * generated by mbuild" >> debian/changelog
67 # echo " -- Michael Wagner <info@wagnertech.de> Sun, 11 Feb 2018 20:03:04 +0100" >> debian/changelog
70 debian/tmp/DEBIAN/preinst: debian/$(paket).preinst
71 cp debian/$(paket).preinst debian/tmp/DEBIAN/preinst
73 debian/tmp/DEBIAN/postinst: debian/$(paket).postinst
74 cp debian/$(paket).postinst debian/tmp/DEBIAN/postinst
76 debian/tmp/DEBIAN/prerm: debian/$(paket).prerm
77 cp debian/$(paket).prerm debian/tmp/DEBIAN/prerm
79 debian/tmp/DEBIAN/postrm: debian/$(paket).postrm
80 cp debian/$(paket).postrm debian/tmp/DEBIAN/postrm
82 # Load project specification
85 # if debian/control is missing, try old mbuild way
87 # if [ -e debian/$(paket).control ]; then echo "trallala"; fi