1 include /usr
/share
/dpkg
/default.mk
6 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
7 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
9 GITVERSION
:= $(shell git rev-parse HEAD
)
11 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
12 DEB
= ${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
13 DEB_DBG
= ${PACKAGE}-dbg_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
14 DEBS
= $(DEB
) $(DEB_DBG
)
20 test -f
"${SRCDIR}/configure" || git submodule update
--init
--recursive
22 $(BUILDDIR
): keycodemapdb | submodule
23 # check if qemu/ was used for a build
24 # if so, please run 'make distclean' in the submodule and try again
25 test ! -f
$(SRCDIR
)/build
/config.status
27 cp
-a
$(SRCDIR
) $@.tmp
28 cp
-a debian
$@.tmp
/debian
29 rm -rf
$@.tmp
/ui
/keycodemapdb
30 cp
-a keycodemapdb
$@.tmp
/ui
/
31 echo
"git clone git://git.proxmox.com/git/pve-qemu.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
38 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
-j
44 $(ORIG_SRC_TAR
): $(BUILDDIR
)
45 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
49 rm -rf
*.dsc
$(BUILDDIR
)
53 $(DSC
): $(ORIG_SRC_TAR
) $(BUILDDIR
)
54 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
58 cd
$(SRCDIR
) && git submodule deinit ui
/keycodemapdb || true
59 rm -rf
$(SRCDIR
)/ui
/keycodemapdb
60 mkdir
$(SRCDIR
)/ui
/keycodemapdb
61 cd
$(SRCDIR
) && git submodule update
--init ui
/keycodemapdb
64 cp
-R
$(SRCDIR
)/ui
/keycodemapdb
/* keycodemapdb
/
68 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
70 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist $(UPLOAD_DIST
)
72 .PHONY
: distclean clean
75 rm -rf
$(PACKAGE
)-[0-9]*/ $(PACKAGE
)*.
tar* *.deb
*.dsc
*.build
*.buildinfo
*.changes