]> granicus.if.org Git - jq/commitdiff
Add some release stuff to Makefile.
authorStephen Dolan <mu@netsoc.tcd.ie>
Tue, 18 Sep 2012 23:34:49 +0000 (00:34 +0100)
committerStephen Dolan <mu@netsoc.tcd.ie>
Tue, 18 Sep 2012 23:34:49 +0000 (00:34 +0100)
.gitignore
Makefile

index 50e45cc8d94284ac3427111300922e258ff96664..e43b388c92b3d354bd1b529c664d2cd483104894 100644 (file)
@@ -8,3 +8,6 @@
 jv_test
 jv_parse
 parsertest*~
+
+# Something delightfully recursive happens otherwise
+docs/content/2.download/source/*
\ No newline at end of file
index 7348b292c9f80e4e4667dee52b4a18c76a26a61b..807a4b21536214c08caf0ae73943e1ff282fcc8a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 CC=gcc -Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
 
-.PHONY: all clean
-all: parsertest
+.PHONY: all clean releasedep tarball
+all: jq
 
 clean:
        make -Bnd | grep 'Must remake target' | \
@@ -28,9 +28,16 @@ jq_test: $(JQ_SRC) jq_test.c
        $(CC) -DJQ_DEBUG=1 -o $@ $^
 
 jq: $(JQ_SRC) main.c
-       $(CC) -DJQ_DEBUG=0 -o $@ $^
+       $(CC) -O -DJQ_DEBUG=0 -o $@ $^
 
 
 test: jq_test
        valgrind --error-exitcode=1 -q --leak-check=full ./jq_test >/dev/null
 
+
+releasedep: lexer.gen.c parser.gen.c jv_utf8_tables.gen.h
+
+docs/content/2.download/source/jq.tgz: jq
+       tar -czvf $@ `git ls-files; ls *.gen.*`
+
+tarball: docs/content/2.download/source/jq.tgz
\ No newline at end of file