mirror of
https://git.proxmox.com/git/frr
synced 2025-04-28 12:38:27 +00:00
add Makefile
This commit is contained in:
commit
bd79a1c6e0
43
Makefile
Normal file
43
Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
PACKAGE=frr
|
||||
VER=6.0
|
||||
PKGREL=0+pve
|
||||
|
||||
SRCDIR=frr
|
||||
BUILDDIR=${SRCDIR}.tmp
|
||||
|
||||
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||
|
||||
GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
|
||||
|
||||
all: ${DEB}
|
||||
@echo ${DEB}
|
||||
|
||||
.PHONY: submodule
|
||||
submodule:
|
||||
test -f "${SRCDIR}/debianpkg/changelog" || git submodule update --init
|
||||
|
||||
.PHONY: deb
|
||||
deb: ${DEB}
|
||||
${DEB}: | submodule
|
||||
rm -f *.deb
|
||||
rm -rf $(BUILDDIR)
|
||||
cp -rpa ${SRCDIR} ${BUILDDIR}
|
||||
cp -a debian ${BUILDDIR}
|
||||
cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
|
||||
|
||||
.PHONY: upload
|
||||
upload: ${DEB}
|
||||
tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: deb
|
||||
dpkg -i ${DEB}
|
Loading…
Reference in New Issue
Block a user