]> git.proxmox.com Git - ui/proxmox-yew-widget-toolkit.git/commitdiff
Makefile: add dsc target to build debian source packages master
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Jan 2025 13:17:53 +0000 (14:17 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Jan 2025 13:17:53 +0000 (14:17 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Makefile

index f156a6bd55baedb2212940a01376db5f1373eb50..069279288b4d0f65483f93afc2daa6478c20d41a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,27 +16,39 @@ all:
 
 $(BUILD_DEBS): deb
 
-.PHONY: deb
-deb:
+# always re-create this dir
+.PHONY: build
+build:
        rm -rf $(BUILDDIR)
        mkdir $(BUILDDIR)
        echo system >$(BUILDDIR)/rust-toolchain
-       rm -f pwt-macros/debian/control
        debcargo package \
          --config "${PWD}/pwt-macros/debian/debcargo.toml" \
          --changelog-ready --no-overlay-write-back \
          --directory "${PWD}/$(BUILDDIR)/pwt-macros" \
          "pwt-macros" "${MACRO_PKG_VER}"
-       cd $(BUILDDIR)/pwt-macros; dpkg-buildpackage -b -uc -us
        cp $(BUILDDIR)/pwt-macros/debian/control pwt-macros/debian/control
-       # Please install librust-pwt-macros-dev: dpkg -i build/librust-pwt-macros-dev_*_amd64.deb
-       rm -f debian/control
+       echo "3.0 (native)" >  build/pwt-macros/debian/source/format
+       rm build/rust-pwt-macros_*.orig.tar.gz
+       cd build/pwt-macros; dpkg-buildpackage -S -us -uc -d
        debcargo package \
          --config "${PWD}/debian/debcargo.toml" \
          --changelog-ready --no-overlay-write-back \
          --directory "${PWD}/$(BUILDDIR)/pwt" "pwt" "${PKG_VER}"
-       cd $(BUILDDIR)/pwt; dpkg-buildpackage -b -uc -us
        cp $(BUILDDIR)/pwt/debian/control debian/control
+       echo "3.0 (native)" >  build/pwt/debian/source/format
+       rm build/rust-pwt_*.orig.tar.gz
+       cd build/pwt; dpkg-buildpackage -S -us -uc -d
+
+.PHONY: dsc
+dsc: build
+
+.PHONY: deb
+deb: build
+       cd $(BUILDDIR)/pwt-macros; dpkg-buildpackage -b -uc -us
+       # Please install librust-pwt-macros-dev: dpkg -i build/librust-pwt-macros-dev_*_amd64.deb
+       cd $(BUILDDIR)/pwt; dpkg-buildpackage -b -uc -us
+       lintian ${BUILD_DEBS}
 
 upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(BUILD_DEBS)