Skip to content

Commit

Permalink
Fix Makefile macros
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Oct 11, 2023
1 parent 91d7551 commit 39a8095
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ endif
# --------------------------------------------------------------
# Installation directories

BUIDL_MOD ?= false
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
Expand Down Expand Up @@ -93,7 +92,6 @@ plugins: libs
$(MAKE) all -C plugins/NeuralRecord

MOD: clean
@BUIDL_MOD=true
$(MAKE) mod -C plugins/NeuralRecord

ifneq ($(CROSS_COMPILING),true)
Expand Down
3 changes: 2 additions & 1 deletion plugins/NeuralRecord/MOD/neuralrecord_dsp.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<http://kxstudio.sf.net/ns/lv2ext/programs#Interface> ;

lv2:optionalFeature <http://lv2plug.in/ns/lv2core#hardRTCapable> ,
<http://lv2plug.in/ns/ext/buf-size#boundedBlockLength> ;
<http://lv2plug.in/ns/ext/buf-size#boundedBlockLength> ,
<http://kx.studio/ns/lv2ext/control-input-port-change-request> ;

lv2:requiredFeature opts:options ,
<http://lv2plug.in/ns/ext/urid#map> ;
Expand Down
14 changes: 3 additions & 11 deletions plugins/NeuralRecord/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ NAME = neuralrecord

# --------------------------------------------------------------
# Plugin types to build
ifeq ($(BUILD_MOD),false)
BUILD_LV2 ?= true
BUILD_VST2 ?= false
BUILD_VST3 ?= true
BUILD_CLAP ?= false
BUILD_JACK ?= true
BUILD_DSSI ?= false
BUILD_LADSPA ?= false
endif


# --------------------------------------------------------------
# Files to build
Expand All @@ -42,7 +39,6 @@ BUILD_CXX_FLAGS += -pthread `pkg-config --cflags sndfile` `pkg-config --libs sn
# --------------------------------------------------------------
# Enable all selected plugin types

ifeq ($(BUILD_MOD),false)
ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_CAIRO),true)
TARGETS += lv2_sep
Expand Down Expand Up @@ -83,11 +79,6 @@ ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

else
BUILD_LV2 = true
TARGETS += lv2_dsp
endif

all: $(TARGETS)
ifeq ($(BUILD_VST3),true)
@cp -r resources $(TARGET_DIR)/$(NAME).vst3/Contents/x86_64-linux/
Expand All @@ -96,7 +87,7 @@ ifeq ($(BUILD_LV2),true)
@cp -r resources $(TARGET_DIR)/$(NAME).lv2/
endif

mod: $(TARGETS)
mod: lv2_dsp
ifeq ($(BUILD_LV2),true)
@cp -r resources $(TARGET_DIR)/$(NAME).lv2/
@cp -r MOD/* $(TARGET_DIR)/$(NAME).lv2/
Expand Down Expand Up @@ -132,7 +123,8 @@ endif
ifeq ($(BUILD_LV2),true)
@mkdir -p -m755 $(DESTDIR)$(LV2_DIR)/$(NAME).lv2 && \
install -m755 $(TARGET_DIR)/$(NAME).lv2/*$(LIB_EXT) $(DESTDIR)$(LV2_DIR)/$(NAME).lv2 && \
install -m644 $(TARGET_DIR)/$(NAME).lv2/*.ttl $(DESTDIR)$(LV2_DIR)/$(NAME).lv2
install -m644 $(TARGET_DIR)/$(NAME).lv2/*.ttl $(DESTDIR)$(LV2_DIR)/$(NAME).lv2 && \
cp -r $(TARGET_DIR)/$(NAME).lv2/resources $(DESTDIR)$(LV2_DIR)/$(NAME).lv2
endif
ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
Expand Down

0 comments on commit 39a8095

Please sign in to comment.