]> git.proxmox.com Git - pve-cluster.git/commitdiff
buildsys: write control file into build directory
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Feb 2017 10:24:55 +0000 (11:24 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 8 Feb 2017 10:35:07 +0000 (11:35 +0100)
Else the first make {deb,dinstall} from a clean repo fails as we
generated the debian control file to the source debian/ folder.
Just write it directly to the build/debian directory, so we do not
clutter the source directory and build always with the up to date
control file.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index e5d61deb41755232c866fb6422ac330adcc7e68d..5adb5b30f805747daef0d06f028eebb7e6bd568d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ ${DEB}:
        rm -rf build
        cp -a data build
        cp -a debian build/debian
-       sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > debian/control
+       sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > build/debian/control
        echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
        cd build; ./autogen.sh
        cd build; dpkg-buildpackage -rfakeroot -b -us -uc