makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
48
Makefile
48
Makefile
@ -4,19 +4,19 @@ PACKAGE=libpve-storage-perl
|
|||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
BINDIR=${PREFIX}/bin
|
BINDIR=$(PREFIX)/bin
|
||||||
SBINDIR=${PREFIX}/sbin
|
SBINDIR=$(PREFIX)/sbin
|
||||||
MANDIR=${PREFIX}/share/man
|
MANDIR=$(PREFIX)/share/man
|
||||||
DOCDIR=${PREFIX}/share/doc/${PACKAGE}
|
DOCDIR=$(PREFIX)/share/doc/$(PACKAGE)
|
||||||
MAN1DIR=${MANDIR}/man1/
|
MAN1DIR=$(MANDIR)/man1/
|
||||||
BASHCOMPLDIR=${PREFIX}/share/bash-completion/completions/
|
BASHCOMPLDIR=$(PREFIX)/share/bash-completion/completions/
|
||||||
ZSHCOMPLDIR=${PREFIX}/share/zsh/vendor-completions/
|
ZSHCOMPLDIR=$(PREFIX)/share/zsh/vendor-completions/
|
||||||
|
|
||||||
export PERLDIR=${PREFIX}/share/perl5
|
export PERLDIR=$(PREFIX)/share/perl5
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
-include /usr/share/pve-doc-generator/pve-doc-generator.mk
|
-include /usr/share/pve-doc-generator/pve-doc-generator.mk
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ all:
|
|||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: deb
|
dinstall: deb
|
||||||
dpkg -i ${DEB}
|
dpkg -i $(DEB)
|
||||||
|
|
||||||
pvesm.bash-completion:
|
pvesm.bash-completion:
|
||||||
perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
|
perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
|
||||||
@ -36,24 +36,24 @@ pvesm.zsh-completion:
|
|||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: PVE pvesm.1 pvesm.bash-completion pvesm.zsh-completion
|
install: PVE pvesm.1 pvesm.bash-completion pvesm.zsh-completion
|
||||||
install -d ${DESTDIR}${SBINDIR}
|
install -d $(DESTDIR)$(SBINDIR)
|
||||||
install -m 0755 pvesm ${DESTDIR}${SBINDIR}
|
install -m 0755 pvesm $(DESTDIR)$(SBINDIR)
|
||||||
make -C PVE install
|
make -C PVE install
|
||||||
make -C udev-rbd install
|
make -C udev-rbd install
|
||||||
install -d ${DESTDIR}/usr/share/man/man1
|
install -d $(DESTDIR)/usr/share/man/man1
|
||||||
install -m 0644 pvesm.1 ${DESTDIR}/usr/share/man/man1/
|
install -m 0644 pvesm.1 $(DESTDIR)/usr/share/man/man1/
|
||||||
gzip -9 -n ${DESTDIR}/usr/share/man/man1/pvesm.1
|
gzip -9 -n $(DESTDIR)/usr/share/man/man1/pvesm.1
|
||||||
install -m 0644 -D pvesm.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pvesm
|
install -m 0644 -D pvesm.bash-completion $(DESTDIR)$(BASHCOMPLDIR)/pvesm
|
||||||
install -m 0644 -D pvesm.zsh-completion ${DESTDIR}${ZSHCOMPLDIR}/_pvesm
|
install -m 0644 -D pvesm.zsh-completion $(DESTDIR)$(ZSHCOMPLDIR)/_pvesm
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: $(DEB)
|
||||||
${DEB}:
|
$(DEB):
|
||||||
rm -rf build
|
rm -rf build
|
||||||
rsync -a * build
|
rsync -a * build
|
||||||
echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" >build/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout $(GITVERSION)" >build/debian/SOURCE
|
||||||
cd build; dpkg-buildpackage -b -us -uc
|
cd build; dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian $(DEB)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@ -62,7 +62,7 @@ test:
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f *.xml.tmp *.1 *.5 *.8 *{synopsis,opts}.adoc docinfo.xml
|
rm -f *.xml.tmp *.1 *.5 *.8 *(synopsis,opts).adoc docinfo.xml
|
||||||
rm -rf build *.deb *.buildinfo *.changes
|
rm -rf build *.deb *.buildinfo *.changes
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
@ -70,5 +70,5 @@ distclean: clean
|
|||||||
|
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: $(DEB)
|
||||||
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
|
tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
|
||||||
|
|||||||
Reference in New Issue
Block a user