mirror of
https://git.proxmox.com/git/proxmox-mailgateway
synced 2025-04-28 22:47:15 +00:00
makefile: convert to use simple parenthesis
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a4d0c556de
commit
ca6500923f
32
Makefile
32
Makefile
@ -4,32 +4,32 @@ PACKAGE=proxmox-mailgateway
|
|||||||
|
|
||||||
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
|
||||||
CT_DEB=${PACKAGE}-container_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
CT_DEB=$(PACKAGE)-container_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
HEADER_DEB=pve-headers_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
HEADER_DEB=pve-headers_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
|
|
||||||
DEBS=${DEB} ${CT_DEB} ${HEADER_DEB}
|
DEBS=$(DEB) $(CT_DEB) $(HEADER_DEB)
|
||||||
|
|
||||||
BUILD_DIR=build
|
BUILD_DIR=build
|
||||||
|
|
||||||
ARCH=amd64
|
ARCH=amd64
|
||||||
|
|
||||||
all: ${DEB}
|
all: $(DEB)
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb ${CT_DEB} ${HEADER_DEB}: ${DEB}
|
deb $(CT_DEB) $(HEADER_DEB): $(DEB)
|
||||||
${DEB}: debian
|
$(DEB): debian
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf $(BUILD_DIR)
|
||||||
mkdir -p ${BUILD_DIR}/debian
|
mkdir -p $(BUILD_DIR)/debian
|
||||||
cp -ar debian/* ${BUILD_DIR}/debian/
|
cp -ar debian/* $(BUILD_DIR)/debian/
|
||||||
echo "git clone git://git.proxmox.com/git/proxmox-mailgateway.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/proxmox-mailgateway.git\\ngit checkout $(GITVERSION)" > $(BUILD_DIR)/debian/SOURCE
|
||||||
cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
|
cd $(BUILD_DIR); dpkg-buildpackage -b -uc -us
|
||||||
lintian ${DEBS}
|
lintian $(DEBS)
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEBS}
|
upload: $(DEBS)
|
||||||
tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye --arch ${ARCH}
|
tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye --arch $(ARCH)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes
|
rm -rf $(BUILD_DIR) *.deb *.buildinfo *.changes
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
Loading…
Reference in New Issue
Block a user