mirror of
git://git.proxmox.com/git/proxmox-websocket-tunnel.git
synced 2025-01-20 18:09:25 +03:00
build: makefile improvements
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
f3f81d6d17
commit
7a676f9708
25
Makefile
25
Makefile
@ -1,3 +1,8 @@
|
|||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
|
PACKAGE := proxmox-websocket-tunnel
|
||||||
|
ARCH := $(DEB_BUILD_ARCH)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: check
|
all: check
|
||||||
|
|
||||||
@ -18,22 +23,22 @@ build:
|
|||||||
--config "$(PWD)/debian/debcargo.toml" \
|
--config "$(PWD)/debian/debcargo.toml" \
|
||||||
--changelog-ready \
|
--changelog-ready \
|
||||||
--no-overlay-write-back \
|
--no-overlay-write-back \
|
||||||
--directory "$(PWD)/build/proxmox-websocket-tunnel" \
|
--directory "$(PWD)/build/$(PACKAGE)" \
|
||||||
"proxmox-websocket-tunnel" \
|
"$(PACKAGE)" \
|
||||||
"$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')"
|
"$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')"
|
||||||
echo system >build/rust-toolchain
|
echo system >build/rust-toolchain
|
||||||
rm -f build/proxmox-websocket-tunnel/Cargo.lock
|
rm -f build/$(PACKAGE)/Cargo.lock
|
||||||
find build/proxmox-websocket-tunnel/debian -name '*.hint' -delete
|
find build/$(PACKAGE)/debian -name '*.hint' -delete
|
||||||
cp build/proxmox-websocket-tunnel/debian/control debian/control
|
cp build/$(PACKAGE)/debian/control debian/control
|
||||||
|
|
||||||
.PHONY: dsc
|
.PHONY: dsc
|
||||||
dsc: build
|
dsc: build
|
||||||
(cd build/proxmox-websocket-tunnel && dpkg-buildpackage -S -uc -us)
|
(cd build/$(PACKAGE) && dpkg-buildpackage -S -uc -us)
|
||||||
lintian build/*.dsc
|
lintian build/*.dsc
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: build
|
deb: build
|
||||||
(cd build/proxmox-websocket-tunnel && dpkg-buildpackage -b -uc -us)
|
(cd build/$(PACKAGE) && dpkg-buildpackage -b -uc -us)
|
||||||
lintian build/*.deb
|
lintian build/*.deb
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
@ -41,9 +46,11 @@ clean:
|
|||||||
rm -rf build *.deb *.buildinfo *.changes *.orig.tar.gz
|
rm -rf build *.deb *.buildinfo *.changes *.orig.tar.gz
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
||||||
|
.PHONY: upload
|
||||||
|
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
||||||
upload: deb
|
upload: deb
|
||||||
cd build; \
|
cd build; \
|
||||||
dcmd --deb rust-proxmox-websocket-tunnel_*.changes \
|
dcmd --deb rust-$(PACKAGE)_*.changes \
|
||||||
| grep -v '.changes$$' \
|
| grep -v '.changes$$' \
|
||||||
| tar -cf- -T- \
|
| tar -cf- -T- \
|
||||||
| ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye
|
| ssh -X repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user