mirror of
https://git.proxmox.com/git/libxdgmime-perl
synced 2025-07-29 22:18:06 +00:00
buildsys: reorganize Makefile
* build in versioned subdirectory * add 'deb' make target * drop fakeroot from dpkg-buildpackage invocation Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
7488acc5a2
commit
b6f9e3424b
26
Makefile
26
Makefile
@ -1,20 +1,28 @@
|
|||||||
include /usr/share/dpkg/pkg-info.mk
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
include /usr/share/dpkg/architecture.mk
|
include /usr/share/dpkg/architecture.mk
|
||||||
|
|
||||||
PACKAHE=libxdgmime
|
PACKAGE=libxdgmime
|
||||||
|
|
||||||
DEB = libxdgmime-perl_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
|
DEB = libxdgmime-perl_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
|
||||||
|
BUILDSRC=${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||||
|
|
||||||
OPKGNAME=Xdgmime
|
OPKGNAME=Xdgmime
|
||||||
UPSTREAM=xdgmime-source/src
|
UPSTREAM=xdgmime-source/src
|
||||||
|
|
||||||
${DEB}: ${OPKGNAME}/Xdgmime.xs
|
all: ${DEB}
|
||||||
-rm -rf build
|
|
||||||
cp -a ${OPKGNAME} build
|
.PHONY: ${BUILDSRC}
|
||||||
cp -a ${UPSTREAM}/xdgmime*.[ch] build/
|
${BUILDSRC}:
|
||||||
perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("build/ppport.h");'
|
-rm -rf ${BUILDSRC}
|
||||||
cp -a debian build
|
cp -a ${OPKGNAME} ${BUILDSRC}
|
||||||
cd build; dpkg-buildpackage -b -us -uc -rfakeroot
|
cp -a ${UPSTREAM}/xdgmime*.[ch] ${BUILDSRC}/
|
||||||
|
perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");'
|
||||||
|
cp -a debian ${BUILDSRC}
|
||||||
|
|
||||||
|
.PHONY: deb
|
||||||
|
deb: ${DEB}
|
||||||
|
${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC}
|
||||||
|
cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
@ -22,7 +30,7 @@ upload: ${DEB}
|
|||||||
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
|
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
|
||||||
|
|
||||||
|
|
||||||
CLEANFILES = *~ debian/*~ *.deb build libxdgmime-perl_*
|
CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl_*
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user