Packages: fixed packages build, broken in 00d8049418cf.

This commit is contained in:
Andrei Belov
2019-02-26 14:39:08 +03:00
parent bd1eb7b502
commit 79e3185f33
3 changed files with 5 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ config.env.%:
cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/src $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/test $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/version $(BUILDDIR_$*)/
touch $@
configure.unit: config.env.unit
@@ -65,6 +66,7 @@ clean:
dh_testroot
dh_clean
find $(CURDIR) -maxdepth 1 -size 0 -delete
rm -rf $(BUILDDIR_unit) $(BUILDDIR_unit_debug)
install: build
dh_testdir

View File

@@ -26,6 +26,7 @@ config.env.%:
cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/src $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/test $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/version $(BUILDDIR_$*)/
touch $@
configure.unit: config.env.unit
@@ -83,6 +84,7 @@ clean:
dh_testroot
dh_clean
find $(CURDIR) -maxdepth 1 -size 0 -delete
rm -rf $(BUILDDIR_unit) $(BUILDDIR_unit_debug)
install: build do.tests
dh_testdir

View File

@@ -170,7 +170,7 @@ endif
rpmbuild/SOURCES/unit-$(VERSION).tar.gz:
cd ../.. && tar -czf pkg/rpm/rpmbuild/SOURCES/unit-$(VERSION).tar.gz \
--transform "s#^#unit-$(VERSION)/#" \
LICENSE NOTICE CHANGES README configure auto src test
LICENSE NOTICE CHANGES README configure auto src test version
unit: check-build-depends-unit rpmbuild/SPECS/unit.spec rpmbuild/SOURCES/unit-$(VERSION).tar.gz
@echo "===> Building $@ package" ; \