mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-04-30 16:29:28 +00:00
makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
b020b2e882
commit
95f110d5a3
32
Makefile
32
Makefile
@ -5,32 +5,32 @@ export KERNEL_ABI=6.2.11-2-pve
|
|||||||
|
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
KERNEL_DEB=pve-kernel-${KERNEL_VER}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
KERNEL_DEB=pve-kernel-$(KERNEL_VER)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
HEADERS_DEB=pve-headers-${KERNEL_VER}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
HEADERS_DEB=pve-headers-$(KERNEL_VER)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||||
|
|
||||||
BUILD_DIR=build
|
BUILD_DIR=build
|
||||||
|
|
||||||
DEBS=${KERNEL_DEB} ${HEADERS_DEB}
|
DEBS=$(KERNEL_DEB) $(HEADERS_DEB)
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEBS}
|
deb: $(DEBS)
|
||||||
|
|
||||||
${HEADERS_DEB}: ${KERNEL_DEB}
|
$(HEADERS_DEB): $(KERNEL_DEB)
|
||||||
${KERNEL_DEB}: debian
|
$(KERNEL_DEB): debian
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf $(BUILD_DIR)
|
||||||
mkdir -p ${BUILD_DIR}/debian
|
mkdir -p $(BUILD_DIR)/debian
|
||||||
rsync -a * ${BUILD_DIR}/
|
rsync -a * $(BUILD_DIR)/
|
||||||
cd ${BUILD_DIR}; debian/rules debian/control
|
cd $(BUILD_DIR); debian/rules debian/control
|
||||||
echo "git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/pve-kernel-meta.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: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
||||||
upload: ${DEBS}
|
upload: $(DEBS)
|
||||||
tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
|
tar cf - $(DEBS)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
|
||||||
|
|
||||||
.PHONY: clean distclean
|
.PHONY: clean distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo
|
rm -rf *~ $(BUILD_DIR) *.deb *.dsc *.changes *.buildinfo
|
||||||
|
Loading…
Reference in New Issue
Block a user