]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
Added the 'tar' target to build the tar.gz archive directly from git.
authorwilly tarreau <willy@wtap.(none)>
Sun, 19 Mar 2006 20:16:26 +0000 (21:16 +0100)
committerwilly tarreau <willy@wtap.(none)>
Sun, 19 Mar 2006 20:16:26 +0000 (21:16 +0100)
Makefile

index 63ba90fff4fb2ff330281c289599ce8736e433dd..18a46d4ebabc0f541d53b040317f674f0361b3ca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@
 # You should use it this way :
 #   make TARGET=os CPU=cpu
 
+VERSION := 1.2.10
+
 # Select target OS. TARGET must match a system for which COPTS and LIBS are
 # correctly defined below.
 #TARGET = linux26
@@ -116,3 +118,9 @@ haproxy: src/list.o src/chtbl.o src/hashpjw.o haproxy.o
 clean:
        rm -f *.[oas] *~ *.rej core haproxy test nohup.out gmon.out src/*.[oas]
 
+tar:
+       rm -f haproxy-$(VERSION)
+       ln -s . haproxy-$(VERSION)
+       tar --exclude=haproxy-$(VERSION)/.git --exclude=haproxy-$(VERSION)/haproxy-$(VERSION) -cf - haproxy-$(VERSION)/* | gzip -c9 >haproxy-$(VERSION).tar.gz
+       rm -f haproxy-$(VERSION)
+