]> git.proxmox.com Git - pve-libseccomp2.4-dev.git/blob - Makefile
initial import for 2.4.1-1, plus 13 git commits
[pve-libseccomp2.4-dev.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE := pve-libseccomp-dev
4
5 ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
6 GITVERSION := $(shell git rev-parse HEAD)
7
8 SRCDIR=libseccomp
9 BUILDSRC := $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
10
11 DEB := pve-libseccomp2.4-dev_$(DEB_VERSION_UPSTREAM_REVISION)_$(ARCH).deb
12
13 all: $(DEB)
14 echo $(DEB)
15
16 .PHONY: submodule
17 submodule:
18 test -f "$(SRCDIR)/confiure.ac" || git submodule update --init
19
20 $(BUILDSRC): libseccomp debian | submodule
21 rm -rf $(BUILDSRC)
22 cp -a $(SRCDIR) $(BUILDSRC)
23 cp -a debian $(BUILDSRC)/debian
24 echo "git clone git://git.proxmox.com/git/pve-libseccomp.git\\ngit checkout ${GITVERSION}" >$(BUILDSRC)/debian/SOURCE
25
26 .PHONY: deb
27 deb: $(DEB)
28 $(DEB): $(BUILDSRC)
29 rm -f *.deb
30 cd $(BUILDSRC); dpkg-buildpackage -b -us -uc
31 lintian $(DEB)
32
33 .PHONY: dsc
34 dsc: $(DSC)
35 $(DSC): $(BUILDSRC)
36 rm -f *.dsc
37 cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
38 lintian $(DSC)
39
40 .PHONY: upload
41 upload: $(DEB)
42 tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
43
44 .PHONY: clean
45 clean:
46 rm -rf $(BUILDSRC) *.deb *.tar.gz *.changes *.dsc *.buildinfo
47
48 .PHONY: dinstall
49 dinstall: $(DEB)
50 dpkg -i $(DEB)