$(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)