[axel-commits] r56 - /trunk/Makefile

phihag-guest at users.alioth.debian.org phihag-guest at users.alioth.debian.org
Tue Oct 14 12:55:31 UTC 2008


Author: phihag-guest
Date: Tue Oct 14 12:55:31 2008
New Revision: 56

URL: http://svn.debian.org/wsvn/axel/?sc=1&rev=56
Log:
make tar now works without any quirks
Simplified Makefile maintenance (Individual *.c file updating now only in one place)

Modified:
    trunk/Makefile

Modified: trunk/Makefile
URL: http://svn.debian.org/wsvn/axel/trunk/Makefile?rev=56&op=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Tue Oct 14 12:55:31 2008
@@ -29,7 +29,7 @@
 	rm -f *.o $(OUTFILE) search core *.mo
 
 distclean: clean
-	rm -f Makefile.settings config.h
+	rm -f Makefile.settings config.h axel-*.tar axel-*.tar.gz axel-*.tar.bz2
 
 install-man:
 	mkdir -p $(DESTDIR)$(MANDIR)/man1/
@@ -48,7 +48,7 @@
 ### MAIN PROGRAM
 
 $(OUTFILE): axel.o conf.o conn.o ftp.o http.o search.o tcp.o text.o
-	$(CC) axel.o conf.o conn.o ftp.o http.o search.o tcp.o text.o -o $(OUTFILE) $(LFLAGS)
+	$(CC) *.o -o $(OUTFILE) $(LFLAGS)
 ifndef DEBUG
 	-$(STRIP) $(OUTFILE)
 endif
@@ -63,10 +63,11 @@
 uninstall-bin:
 	rm -f $(BINDIR)/$(OUTFILE)
 
-tar: distclean
-	x=`pwd | sed -e 's/\/.*\///'`; \
-	cd ..; \
-	tar czf $$x.tar.gz $$x
+tar:
+	version=$$(sed -n 's/#define AXEL_VERSION_STRING[ \t]*"\([^"]*\)"/\1/p' < axel.h) && \
+	tar --create "--file=axel-$${version}.tar" --exclude-vcs -- *.c *.h *.po configure Makefile axel.1 gui CHANGES COPYING CREDITS README && \
+	gzip --best < "axel-$${version}.tar" > "axel-$${version}.tar.gz" && \
+	bzip2 --best < "axel-$${version}.tar" > "axel-$${version}.tar.bz2"
 
 
 ### I18N FILES




More information about the axel-commits mailing list