mirror of
https://git.proxmox.com/git/framework7
synced 2026-02-04 19:42:15 +00:00
buildsys: use versioned builddir
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
6f2bebfcd2
commit
e12ba90e2c
17
Makefile
17
Makefile
@ -6,12 +6,19 @@ all: $(DEB)
|
||||
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||
|
||||
BUILDDIR=$(PACKAGE)-$(DEB_VERSION_UPSTREAM_REVISION)
|
||||
|
||||
|
||||
$(BUILDDIR): debian
|
||||
rm -rf $@ $@.tmp
|
||||
rsync -a ./* $@.tmp/
|
||||
mv $@.tmp $@
|
||||
|
||||
.PHONY: deb
|
||||
deb: $(DEB)
|
||||
$(DEB):
|
||||
rm -rf build
|
||||
rsync -a ./* build/
|
||||
cd build; dpkg-buildpackage -b -us -uc
|
||||
|
||||
$(DEB): $(BUILDDIR)
|
||||
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
||||
lintian $(DEB)
|
||||
|
||||
|
||||
@ -57,4 +64,4 @@ download: framework7 framework7-icons material-icons
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *.tar.gz build/ *.deb *.buildinfo *.changes
|
||||
rm -rf *.tar.gz $(BUILDDIR) build/ *.deb *.buildinfo *.changes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user