name peg file after TYPE master 0.0.2
authorrekado <rekado@elephly.net>
Wed, 11 Feb 2015 22:16:16 +0000 (23:16 +0100)
committerrekado <rekado@elephly.net>
Wed, 11 Feb 2015 22:16:30 +0000 (23:16 +0100)
Makefile
src/mdaPiano.h
src/mdaPianoVoice.h

index c46eee2d44d23b1d1bb5d336825e7b5281ef4697..277306243abe182cd113c983cf079e7787073c98 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,12 +22,12 @@ build/$(BUNDLE): src/$(TYPE)/manifest.ttl \
        mkdir -p build/$(BUNDLE)
        cp -r $^ build/$(BUNDLE)
 
-build/$(TYPE).so: $(SOURCES) src/ports.peg
+build/$(TYPE).so: $(SOURCES) src/$(TYPE).peg
        mkdir -p build
        $(CXX) $(FLAGS) -shared $(SOURCES) `pkg-config --cflags --libs lvtk-plugin-1` -o $@
 
-src/ports.peg: src/$(TYPE)/$(TYPE).ttl
-       ttl2c $^ src/ports.peg
+src/$(TYPE).peg: src/$(TYPE)/$(TYPE).ttl
+       ttl2c $^ src/$(TYPE).peg
 
 install: build/$(BUNDLE)
        mkdir -p $(INSTALL_DIR)
@@ -35,4 +35,4 @@ install: build/$(BUNDLE)
        cp -R build/$(BUNDLE) $(INSTALL_DIR)
 
 clean:
-       rm -rf build src/ports.peg
+       rm -rf build src/*.peg
index ffb26c8432ccd678ffe9e334f433555c5f0fe09d..134be8561061eff0adaa81dfa75a878250d9bd9f 100644 (file)
@@ -3,7 +3,11 @@
 //See associated .cpp file for copyright and other info
 
 #include "mdaPianoVoice.h"
-#include "ports.peg"
+#ifdef PIANO
+#include "mdaPiano.peg"
+#elif defined EPIANO
+#include "mdaEPiano.peg"
+#endif
 
 #pragma GCC system_header
 #include <lvtk/synth.hpp>
index 9de7caccef2a99a8b36accbaa26e033aef8bf62b..6c5c0db2887f36e96cb40fb63585517c60527998 100644 (file)
@@ -2,7 +2,11 @@
 #define MDA_PIANO_VOICE_H
 
 #include "mdaPianoCommon.h"
-#include "ports.peg"
+#ifdef PIANO
+#include "mdaPiano.peg"
+#elif defined EPIANO
+#include "mdaEPiano.peg"
+#endif
 
 #pragma GCC system_header
 #include <lvtk/synth.hpp>