]> wagnertech.de Git - projects.git/blobdiff - tools/make/rules
posaune
[projects.git] / tools / make / rules
index 13b9e20cae5754d3f7b7e80273b975a3d83b2448..9ddc63885194ac0b7bc51e0b1dc5afffa102d986 100755 (executable)
@@ -5,6 +5,7 @@
 # defile default operations
 NOP = @echo "No operation for target $@"
 DEB = fakeroot dpkg-deb --build debian/tmp
+INSERT_BUILD = /usr/share/mbuild/insert_build.sh
 
 include debian/rules.pre
 
@@ -41,8 +42,9 @@ binary-arch:
 # Erstellen Architektur-unabhängiger (Architecture: all) Binärpakete im übergeordneten Verzeichnis
 binary-indep: copy ../$(paket)_$(version)-$(build)$(_arch).deb
 
-version: $(TARGET)
-       $(INSERT_BUILD) $(TARGET) $(build)
+version: ~/build/$(TARGET)
+       $(INSERT_BUILD) ~/build/$(TARGET) $(build)
+       cp ~/build/*$(build)* ../
 
 ../build:
        mkdir ../build
@@ -60,7 +62,7 @@ copy: debian/$(paket).cp
 debian/tmp/DEBIAN/control: debian/control debian/changelog
        dpkg-gencontrol
 
-debian/changelog: debian/$(paket).changelog debian/setenv.sh
+debian/changelog: debian/$(paket).changelog debian/rules.pre
        sed "s/%BUILD%/$(build)/" debian/$(paket).changelog > debian/changelog
 #      echo "${pwd} (${build}) unstable; urgency=medium" > debian/changelog
 #      echo "  * generated by mbuild" >> debian/changelog