Skip to content
Snippets Groups Projects
Commit a18dfd7b authored by Septen's avatar Septen
Browse files

Makefile.plugins improvements.

* Now when we compile plugins it checks whether plugin's folder
  contains *.jucer file and appropriate Makefile for plugin in the
  Source/ folder.
parent 336cc396
Branches
No related tags found
No related merge requests found
......@@ -61,13 +61,31 @@ all: notify $(SUBDIRS)
notify:
@echo "Building Open-Ephys Plugins"
$(SUBDIRS):
@if [ -f $@/Makefile ]; then $(MAKE) -C $@ ; fi
PLUGINNAME=$(shell echo $@ | rev | cut -d'/' -f-1 | rev)
$(SUBDIRS):
@if [ -f $@/*.jucer ] && ([ -f $@/Source/Makefile ]); then \
echo "Found jucer project for" $(PLUGINNAME) "..."; \
$(MAKE) -C $@/Source clean ; \
$(MAKE) -C $@/Source TARGET:=$(PLUGINNAME).so;\
else if [ -f $@/Makefile ]; then \
$(MAKE) -C $@ ; fi \
fi
# if there are a .jucer file in the plugin folder - try to find Makefile in the Source/ folder
%::
@if [ -f $(PLUGIN_DIR)/$@/Makefile ]; then $(MAKE) -C $(PLUGIN_DIR)/$@ clean ; $(MAKE) -C $(PLUGIN_DIR)/$@ ; fi
@if [ -f $(PLUGIN_DIR)/$@/*.jucer ] && ([ -f $(PLUGIN_DIR)/$@/Source/Makefile ]); then \
echo "Found jucer project for" $(PLUGINNAME) "..."; \
$(MAKE) -C $(PLUGIN_DIR)/$@/Source clean ; \
$(MAKE) -C $(PLUGIN_DIR)/$@/Source TARGET:=$@.so; \
else if [ -f $(PLUGIN_DIR)/$@/Makefile ]; then \
$(MAKE) -C $(PLUGIN_DIR)/$@ clean ; \
$(MAKE) -C $(PLUGIN_DIR)/$@ ; fi \
fi
clean:
@echo Cleaning open-ephys plugins
@$(CLEANCMD)
#plugin name from $SUBDIRS goal
#$@ | rev | cut -d'/' -f-1 | rev; \
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment