]> git.proxmox.com Git - pve-edk2-firmware.git/blobdiff - Makefile
add rudimental DSC building
[pve-edk2-firmware.git] / Makefile
index 8387ca6191d27ad209675ffc4a7f1aa0b7929698..12729d234471c7146c2524a46924bb758a1bec84 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
-#DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc # FIXME: TODO
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 all: ${DEB}
        @echo ${DEB}
@@ -26,6 +26,12 @@ ${DEB}: ${BUILDDIR}
        lintian ${DEB}
        @echo ${DEB}
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}: ${BUILDDIR}
+       cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
+       lintian ${DSC}
+
 .PHONY: submodule
 submodule:
        git submodule update --init --recursive
@@ -43,7 +49,7 @@ upload: ${DEB}
 .PHONY: distclean clean
 distclean: clean
 clean:
-       rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
+       rm -rf *~ debian/*~ *.deb ${PACKAGE}-*/ *.tar.gz *.changes *.dsc *.buildinfo
 
 .PHONY: dinstall
 dinstall: ${DEB}