mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-01-03 09:17:37 +03:00
makefile: convert to use simple parenthesis
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
96e6e41b7e
commit
54af66c2ec
60
Makefile
60
Makefile
@ -3,56 +3,56 @@ include /usr/share/dpkg/pkg-info.mk
|
|||||||
PACKAGE=pve-zsync
|
PACKAGE=pve-zsync
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
SBINDIR=${DESTDIR}/usr/sbin
|
SBINDIR=$(DESTDIR)/usr/sbin
|
||||||
MAN8DIR=${DESTDIR}/usr/share/man/man8
|
MAN8DIR=$(DESTDIR)/usr/share/man/man8
|
||||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
DOCDIR=$(DESTDIR)/usr/share/doc/$(PACKAGE)
|
||||||
WORKDIR=${DESTDIR}/var/lib/pve-zsync
|
WORKDIR=$(DESTDIR)/var/lib/pve-zsync
|
||||||
|
|
||||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
|
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: deb
|
dinstall: deb
|
||||||
dpkg -i ${DEB}
|
dpkg -i $(DEB)
|
||||||
|
|
||||||
pve-zsync.8: pve-zsync
|
pve-zsync.8: pve-zsync
|
||||||
./pve-zsync printpod | pod2man -c "Proxmox Documentation" -s 8 -r ${DEB_VERSION_UPSTREAM} -n pve-zsync - pve-zsync.8
|
./pve-zsync printpod | pod2man -c "Proxmox Documentation" -s 8 -r $(DEB_VERSION_UPSTREAM) -n pve-zsync - pve-zsync.8
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: pve-zsync.8
|
install: pve-zsync.8
|
||||||
install -d ${SBINDIR}
|
install -d $(SBINDIR)
|
||||||
install -m 0755 pve-zsync ${SBINDIR}/pve-zsync
|
install -m 0755 pve-zsync $(SBINDIR)/pve-zsync
|
||||||
install -d ${WORKDIR}
|
install -d $(WORKDIR)
|
||||||
install -d ${MAN8DIR}
|
install -d $(MAN8DIR)
|
||||||
install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
|
install -m 0644 pve-zsync.8 $(MAN8DIR)/pve-zsync.8
|
||||||
install -d ${DOCDIR}
|
install -d $(DOCDIR)
|
||||||
|
|
||||||
${BUILDDIR}:
|
$(BUILDDIR):
|
||||||
rm -rf ${BUILDDIR}
|
rm -rf $(BUILDDIR)
|
||||||
rsync -a * ${BUILDDIR}
|
rsync -a * $(BUILDDIR)
|
||||||
echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: $(DEB)
|
||||||
${DEB}: ${BUILDDIR}
|
$(DEB): $(BUILDDIR)
|
||||||
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian $(DEB)
|
||||||
|
|
||||||
.PHONY: dsc
|
.PHONY: dsc
|
||||||
dsc: ${DSC}
|
dsc: $(DSC)
|
||||||
${DSC}:${BUILDDIR}
|
$(DSC):$(BUILDDIR)
|
||||||
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
|
||||||
lintian ${DSC}
|
lintian $(DSC)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILDDIR} *.deb *.dsc ${PACKAGE}*.tar.gz *.buildinfo *.changes
|
rm -rf $(BUILDDIR) *.deb *.dsc $(PACKAGE)*.tar.gz *.buildinfo *.changes
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
@ -60,5 +60,5 @@ distclean: clean
|
|||||||
|
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: $(DEB)
|
||||||
tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye
|
tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye
|
||||||
|
Loading…
Reference in New Issue
Block a user