summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-01-31 02:47:10 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-02-04 02:55:45 +0200
commitbb80de91aee1fd2953ba142693076188e64223a5 (patch)
treeae84e88551b919c41c4306ed2dab8c7fe650d7fa /Makefile
parentcd1ed5ef405deeaf55b60aa2d871145308271478 (diff)
Makefile: add debian/ and deb-dist target to build *.deb package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4a83e26f..2bf64d6e 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,10 @@ help:
@echo " - `${BOLD}`install-bin`${ANSI_RESET}` (installs binary to BINDIR)"
@echo " - `${BOLD}`install-doc`${ANSI_RESET}` (installs manpages to MANDIR)"
@echo " - `${BOLD}`help`${ANSI_RESET}` (prints this information)"
+
+ @echo " - `${BOLD}`dist`${ANSI_RESET}` (creates release tarball named meli-${VERSION}.tar.gz)"
+ @echo " - `${BOLD}`deb-dist`${ANSI_RESET}` (builds debian package)"
+ @echo " - `${BOLD}`distclean`${ANSI_RESET}` (cleans distribution build artifacts)"
@echo "\nENVIRONMENT variables of interest:"
@echo "* PREFIX = ${PREFIX}"
@echo "* MELI_FEATURES = ${MELI_FEATURES}"
@@ -140,3 +144,8 @@ endif
dist:
@git archive --format=tar.gz --prefix=meli-${VERSION}/ HEAD >meli-${VERSION}.tar.gz
@echo meli-${VERSION}.tar.gz
+
+.PHONY: deb-dist
+deb-dist:
+ @dpkg-buildpackage -b -rfakeroot -us -uc
+ @echo `${BOLD}``${GREEN}`Generated`${ANSI_RESET}` ../meli_${VERSION}-1_amd64.deb