Update to version 2.9.3a
[tropbot.git] / Makefile
index 1c72caf..1e3359a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ OPTIONS =       -g
 # add -lsocket -lnsl for SOLARIS
 LIBS   =
 
+ARCHIVE_NAME = tropbot_2.9.3a
 
 all:   tropbot
 
@@ -25,9 +26,7 @@ clean:
        rm *.o tropbot
 
 archive:
-       rm -f ../tropbot.tar.gz
-       tar -cvf ../tropbot.tar *.cc *.h *.txt Makefile
-       gzip ../tropbot.tar
+       cd ..; tar -cvf $(ARCHIVE_NAME).tar tropbot/*.cc tropbot/*.h tropbot/Makefile tropbot/*.txt; gzip $(ARCHIVE_NAME).tar; mv -f $(ARCHIVE_NAME).tar.gz $(ARCHIVE_NAME).tgz
 
 count:
        wc *.cc *.h Makefile