]> granicus.if.org Git - jq/commitdiff
Clean up build a little and add .gitignore.
authorStephen Dolan <mu@netsoc.tcd.ie>
Sun, 2 Sep 2012 16:24:17 +0000 (17:24 +0100)
committerStephen Dolan <mu@netsoc.tcd.ie>
Sun, 2 Sep 2012 16:24:17 +0000 (17:24 +0100)
.gitignore [new file with mode: 0644]
c/Makefile
c/jv_test.c [moved from c/jvtest.c with 100% similarity]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..130e618
--- /dev/null
@@ -0,0 +1,12 @@
+*.o
+*~
+
+# Autogenerated by flex/bison
+lexer.yy.*
+parser.tab.*
+parser.info
+
+# Test binaries
+jv_test
+jv_parse
+parsertest
\ No newline at end of file
index 2e5982046d768ba7241a35905eff6cd6352630a9..d437b143fcc7faf6cdec80b8dd9e9a178e20ffcc 100644 (file)
@@ -20,13 +20,13 @@ parser.tab.h: parser.tab.c
 parsertest: parser.tab.c lexer.yy.c main.c opcode.c bytecode.c compile.c execute.c builtin.c jv.c jv_parse.c jv_print.c jv_dtoa.c
        $(CC) -o $@ $^
 
-jvtest: jvtest.c jv.c jv_print.c
+jv_test: jv_test.c jv.c jv_print.c jv_dtoa.c
        $(CC) -DNO_JANSSON -o $@ $^
 
 jv_parse: jv_parse.c jv.c jv_print.c jv_dtoa.c
        $(CC) -DNO_JANSSON -o $@ $^ -DJV_PARSE_MAIN
 
 
-test: jvtest
-       valgrind --error-exitcode=1 -q --leak-check=full ./jvtest
+test: jv_test
+       valgrind --error-exitcode=1 -q --leak-check=full ./jv_test
 
similarity index 100%
rename from c/jvtest.c
rename to c/jv_test.c