summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2015-06-13 17:12:13 +0200
committerfalkTX <falktx@gmail.com>2015-06-13 17:12:13 +0200
commitf90ae6effcc933e55afebf601ea8f876598e69a2 (patch)
tree180a0d0362767307bb0872d29f8944ce0a220afd /Makefile
parent7bf500ab4a849054464e2cf9a39400a3e7518191 (diff)
Update all Makefiles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 24 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 81a6a91..0d2750c 100644
--- a/Makefile
+++ b/Makefile
@@ -8,23 +8,31 @@ VERSION = $(shell cat .version)
PLUGINS=ZamComp ZamCompX2 ZaMultiComp ZamTube ZamEQ2 ZamAutoSat ZamGEQ31 ZamGEQ31X2 ZaMultiCompX2 ZamGate ZamGateX2
#ZamPiano ZamSFZ ZamChild670
+include Makefile.mk
+
+# --------------------------------------------------------------
+
all: libs $(PLUGINS) gen
-libs: FORCE
- $(MAKE) -C libs/dgl
+libs:
+ifeq ($(HAVE_DGL),true)
+ $(MAKE) -C dpf/dgl
+endif
-gen: plugins libs/lv2_ttl_generator
- @./libs/generate-ttl.sh
+gen: $(PLUGINS) dpf/utils/lv2_ttl_generator
+ @$(CURDIR)/dpf/utils/generate-ttl.sh
ifeq ($(MACOS),true)
- @./libs/generate-vst-bundles.sh
+ @$(CURDIR)/dpf/utils/generate-vst-bundles.sh
endif
-libs/lv2_ttl_generator:
- $(MAKE) -C libs/lv2-ttl-generator
+dpf/utils/lv2_ttl_generator:
+ $(MAKE) -C dpf/utils/lv2-ttl-generator
$(PLUGINS): libs
$(MAKE) -C plugins/$@
+# --------------------------------------------------------------
+
install: all
install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)/ladspa \
$(DESTDIR)$(PREFIX)/$(LIBDIR)/lv2 \
@@ -47,16 +55,18 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/$(BINDIR)/"$$plugin" ; \
done
+# --------------------------------------------------------------
-plugins: FORCE
-
-
-clean: FORCE
+clean:
for plugin in $(PLUGINS); do \
- $(MAKE) PREFIX="$(PREFIX)" LIBDIR="$(LIBDIR)" -C plugins/"$$plugin" clean; \
+ $(MAKE) -C plugins/"$$plugin" clean; \
done
- $(MAKE) clean -C libs/dgl
- $(MAKE) clean -C libs/lv2-ttl-generator
+ifeq ($(HAVE_DGL),true)
+ $(MAKE) clean -C dpf/dgl
+endif
+ $(MAKE) clean -C dpf/utils/lv2-ttl-generator
+
+# --------------------------------------------------------------
.version: FORCE
if test -d .git; then \