Mercurial > hg > pub > prymula > com
view CloneChannel/Makefile @ 12:24d60bdea349
ClonneChannel
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 08 Feb 2024 20:24:27 +0100 |
parents | |
children |
line wrap: on
line source
#!/usr/bin/make -f # Makefile for DISTRHO Plugins # # ---------------------------- # # Created by falkTX # include dpf/Makefile.base.mk all: dgl plugins gen # -------------------------------------------------------------- PREFIX ?= /usr/local DESTDIR ?= # -------------------------------------------------------------- # Check for system-wide projectM HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true) # -------------------------------------------------------------- ifneq ($(CROSS_COMPILING),true) CAN_GENERATE_TTL = true else ifneq ($(EXE_WRAPPER),) CAN_GENERATE_TTL = true endif dgl: ifeq ($(HAVE_CAIRO_OR_OPENGL),true) $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl ifeq ($(HAVE_OPENGL),true) $(MAKE) FILE_BROWSER_DISABLED=true -C dpf/dgl opengl3 endif endif plugins: dgl $(MAKE) all -C plugins/CloneChannel gen: plugins dpf/utils/lv2_ttl_generator ifeq ($(CAN_GENERATE_TTL),true) @$(CURDIR)/dpf/utils/generate-ttl.sh endif dpf/utils/lv2_ttl_generator: $(MAKE) -C dpf/utils/lv2-ttl-generator # -------------------------------------------------------------- clean: rm -rf bin build $(MAKE) clean -C dpf/dgl $(MAKE) clean -C dpf/utils/lv2-ttl-generator $(MAKE) clean -C plugins/CloneChannel # -------------------------------------------------------------- install: install -d $(DESTDIR)$(PREFIX)/lib/ladspa/ install -d $(DESTDIR)$(PREFIX)/lib/dssi/ install -d $(DESTDIR)$(PREFIX)/lib/lv2/ install -d $(DESTDIR)$(PREFIX)/lib/vst/ install -d $(DESTDIR)$(PREFIX)/lib/vst3/ install -d $(DESTDIR)$(PREFIX)/lib/clap/ install -d $(DESTDIR)$(PREFIX)/bin/ install -m 644 bin/*-ladspa.* $(DESTDIR)$(PREFIX)/lib/ladspa/ install -m 644 bin/*-dssi.* $(DESTDIR)$(PREFIX)/lib/dssi/ ifneq ($(MACOS),true) install -m 644 bin/*-vst.* $(DESTDIR)$(PREFIX)/lib/vst/ endif ifeq ($(HAVE_CAIRO_OR_OPENGL),true) ifeq ($(HAVE_LIBLO),true) cp -r bin/*-dssi $(DESTDIR)$(PREFIX)/lib/dssi/ endif # HAVE_LIBLO endif # HAVE_CAIRO_OR_OPENGL cp -rL bin/*.lv2 $(DESTDIR)$(PREFIX)/lib/lv2/ ifeq ($(HAVE_OPENGL),true) cp -rL bin/*.vst $(DESTDIR)$(PREFIX)/lib/vst/ endif # HAVE_OPENGL cp -rL bin/*.vst3 $(DESTDIR)$(PREFIX)/lib/vst3/ cp -rL bin/*.clap $(DESTDIR)$(PREFIX)/lib/clap/ install -m 755 bin/CLoneChannel$(APP_EXT) $(DESTDIR)$(PREFIX)/bin/ # -------------------------------------------------------------- .PHONY: plugins