Diff of /autopano-sift-C/Makefile [fcaf51] .. [4d9e75] Maximize Restore

  Switch to side-by-side view

--- a/autopano-sift-C/Makefile
+++ b/autopano-sift-C/Makefile
@@ -18,8 +18,8 @@
 
 
 LIBSIFT=libsift.a
-VERSION=C2.4
-
+VERSION=2.4
+NAME=autopano-sift-C
 
 CC=gcc
 CFLAGS=-I/usr/include/libxml2 -Wall -O2
@@ -79,7 +79,12 @@
 
 
 dist:
-	DIR=`basename \`pwd\``; cd ..; tar zcvf $$DIR/autopano-sift-$(VERSION).tgz $$DIR/{Makefile,*.h,*.c,README*,LICENSE,doc/*}
+	mkdir $(NAME)-$(VERSION)
+	mkdir $(NAME)-$(VERSION)/doc
+	cp -a {Makefile,*.h,*.c,README*,LICENSE} $(NAME)-$(VERSION)
+	cp -a doc/*.{1,7,txt} $(NAME)-$(VERSION)/doc
+	tar zcvf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
+	rm -rf $(NAME)-$(VERSION)
 
 clean: 
 	rm -f $(OBJECTS) $(BINARIES) core *~