]> git.proxmox.com Git - pve-http-server.git/commitdiff
build script improvement
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 16 Jan 2017 10:34:50 +0000 (11:34 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 16 Jan 2017 10:36:44 +0000 (11:36 +0100)
build with dpkg-buildpackage (in temp dir), instead of
install-ing the files manually and then pretending to build
with dpkg-buildpackage.

this makes the whole fakeroot/root handling simpler, and
makes "make deb" a simple wrapper around building the
package, like it should be.

Makefile
debian/install [deleted file]

index 06d81d68c527a130dc42997da9524e59d4ba1231..2b4c0b8f035554a081c145e2b7e83b811ed62bdf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,14 +28,13 @@ BTDATA =                                                    \
 JQVER=3.3.1
 JQSRC=jquery-${JQVER}.min.js
 
-all: ${DEB}
+all:
 
 .PHONY: deb
 deb ${DEB}:
        rm -rf build
-       rsync -a debian build
-       make DESTDIR=./build install
-       cd build; dpkg-buildpackage -rfakeroot -b -us -uc
+       rsync -a * build
+       cd build; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
 download_bootstrap:
diff --git a/debian/install b/debian/install
deleted file mode 100644 (file)
index e52d84a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-/usr/share/perl5
-/usr/share/libpve-http-server-perl