diff --git a/Makefile b/Makefile index a64a612..da9d7af 100644 --- a/Makefile +++ b/Makefile @@ -50,5 +50,5 @@ SOURCES += eurorack/frames/poly_lfo.cc DISTRIBUTABLES += $(wildcard LICENSE*) res - -include ../../plugin.mk +RACK_DIR ?= ../.. +include $(RACK_DIR)/plugin.mk diff --git a/src/AudibleInstruments.cpp b/src/AudibleInstruments.cpp index 4e3b280..c958c7e 100644 --- a/src/AudibleInstruments.cpp +++ b/src/AudibleInstruments.cpp @@ -5,10 +5,8 @@ Plugin *plugin; void init(rack::Plugin *p) { plugin = p; - p->slug = "AudibleInstruments"; -#ifdef VERSION + p->slug = TOSTRING(SLUG); p->version = TOSTRING(VERSION); -#endif p->addModel(createModel("Audible Instruments", "Braids", "Macro Oscillator", OSCILLATOR_TAG, WAVESHAPER_TAG)); p->addModel(createModel("Audible Instruments", "Elements", "Modal Synthesizer", PHYSICAL_MODELING_TAG));