summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-07-12 10:15:52 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-07-12 10:15:52 +0200
commit0fd7b97f2b220c293f600fbe6eef3fb5bfaf7453 (patch)
tree59d1a53a18098a642df5fa5e857b36878083fbee /makefiles
parent2477f9aa4c4eb89a143b308dbf446c71bbfd90bb (diff)
downloadnagios-plugin-curl-0fd7b97f2b220c293f600fbe6eef3fb5bfaf7453.tar.gz
nagios-plugin-curl-0fd7b97f2b220c293f600fbe6eef3fb5bfaf7453.tar.bz2
added a 'dist-gz' target
fixes dependency on libcurl on Debian (libcurl4-openssl-dev)
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/dist.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefiles/dist.mk b/makefiles/dist.mk
index 01464da..ff4f1ab 100644
--- a/makefiles/dist.mk
+++ b/makefiles/dist.mk
@@ -5,9 +5,9 @@
# - PACKAGE_VERSION
#
# provides:
-# - target 'dist'
+# - targets 'dist', 'dist-gz'
-.PHONY: dist
+.PHONY: dist dist-gz
dist: distclean
test -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar || rm -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar
test -d /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) || rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
@@ -19,3 +19,7 @@ dist: distclean
tar cvf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar $(PACKAGE_NAME)-$(PACKAGE_VERSION)
rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
mv -f /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar .
+
+dist-gz: dist
+ rm -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
+ gzip $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar