summaryrefslogtreecommitdiff
path: root/vtparse/src/Makefile
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-08-25 19:56:24 +0200
committerMichał Cichoń <michcic@gmail.com>2015-08-25 19:56:24 +0200
commit682f23e7bb4a52bedf46eff5c4859e1308eda124 (patch)
tree30ad4f37b434ecdfb5edc36dfbaf7fc924e53c0e /vtparse/src/Makefile
parent8b41fc907bcd27d24c895062ae8a61b305fc2d46 (diff)
downloadpianobar-windows-build-682f23e7bb4a52bedf46eff5c4859e1308eda124.tar.gz
pianobar-windows-build-682f23e7bb4a52bedf46eff5c4859e1308eda124.tar.bz2
pianobar-windows-build-682f23e7bb4a52bedf46eff5c4859e1308eda124.zip
Update build ref
Diffstat (limited to 'vtparse/src/Makefile')
-rw-r--r--vtparse/src/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/vtparse/src/Makefile b/vtparse/src/Makefile
new file mode 100644
index 0000000..044a487
--- /dev/null
+++ b/vtparse/src/Makefile
@@ -0,0 +1,19 @@
+
+RUBY_GENERATION_FILES = vtparse_gen_c_tables.rb vtparse_tables.rb
+
+all: vtparse_table.c vtparse_table.h test
+
+clean:
+ rm -f vtparse_table.c vtparse_table.h test
+
+vtparse_table.c: $(RUBY_GENERATION_FILES)
+ ruby vtparse_gen_c_tables.rb
+
+vtparse_table.h: $(RUBY_GENERATION_FILES)
+ ruby vtparse_gen_c_tables.rb
+
+test: vtparse.c vtparse.h vtparse_table.c vtparse_table.h vtparse_test.c
+ gcc -o test vtparse_test.c vtparse.c vtparse_table.c
+
+.PHONY: all clean
+