aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-11-06 20:00:36 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-11-06 20:11:42 +0100
commitfd56316381c2a3169698d8355ac7cc430b070919 (patch)
tree65db5dd5636ecc2054207de2f21ef15b13757bbc
parent80e009c50bc3f76495bd9d6d84e2e5eb23fe0f7d (diff)
downloadlibfo-fd56316381c2a3169698d8355ac7cc430b070919.tar.gz
libfo-fd56316381c2a3169698d8355ac7cc430b070919.tar.bz2
libfo-fd56316381c2a3169698d8355ac7cc430b070919.zip
add distcheck target
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 700a077..5d988d4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ DIST_DIR=libfo-$(VERSION)
DESTDIR?=/usr/local
RM ?= rm -f
RMDIR ?= rmdir --ignore-fail-on-non-empty
+MKDIR ?= mkdir -p
all: libfo.so
@@ -48,6 +49,14 @@ dist-all: dist-gzip dist-bzip2 dist-xz
distclean: clean
$(RM) -r libfo-*
+distcheck: dist
+ $(RM) -r $(DIST_DIR)
+ tar xzf $(DIST_DIR).tar.gz
+ $(MAKE) -C $(DIST_DIR) check
+ $(MKDIR) $(DIST_DIR)/install
+ DESTDIR=$(DIST_DIR)/install $(MAKE) -C $(DIST_DIR) install
+ $(MAKE) -C $(DIST_DIR) distclean
+
www:
./gen-download-page.sh
./man2html.sh