cleaned the 'tar' target and allowed the 'clean' target to remove the tar.gz file.

This commit is contained in:
willy tarreau 2006-03-19 21:30:14 +01:00
parent cee272fff4
commit e114bf94a3
1 changed files with 2 additions and 2 deletions

View File

@ -117,9 +117,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]
rm -f haproxy-$(VERSION).tar.gz haproxy-$(VERSION)
tar:
rm -f haproxy-$(VERSION)
tar: clean
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)