Skip to content

Commit

Permalink
Makefile compat with non-GNU extensions, install clap and vst3
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 15, 2022
1 parent f80c2ae commit b853db1
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ endif

gen: $(PLUGINS) dpf/utils/lv2_ttl_generator
@$(CURDIR)/dpf/utils/generate-ttl.sh
ifeq ($(MACOS),true)
@$(CURDIR)/dpf/utils/generate-vst-bundles.sh
endif

dpf/utils/lv2_ttl_generator:
$(MAKE) -C dpf/utils/lv2-ttl-generator
Expand All @@ -37,25 +34,29 @@ install: all
install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)/ladspa \
$(DESTDIR)$(PREFIX)/$(LIBDIR)/lv2 \
$(DESTDIR)$(PREFIX)/$(LIBDIR)/vst \
$(DESTDIR)$(PREFIX)/$(BINDIR) ; \
$(DESTDIR)$(PREFIX)/$(LIBDIR)/vst3 \
$(DESTDIR)$(PREFIX)/$(LIBDIR)/clap \
$(DESTDIR)$(PREFIX)/$(BINDIR)
for plugin in $(PLUGINS); do \
install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)/lv2/"$$plugin".lv2 ; \
install -t $(DESTDIR)$(PREFIX)/$(LIBDIR)/lv2/"$$plugin".lv2 \
bin/"$$plugin".lv2/* ; \
install -m 644 bin/"$$plugin".lv2/* \
$(DESTDIR)$(PREFIX)/$(LIBDIR)/lv2/"$$plugin".lv2/ ; \
cp -r bin/"$$plugin".vst3 $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst3/ ; \
done;
ifeq ($(HAVE_JACK),true)
for plugin in $(PLUGINS); do \
install -t $(DESTDIR)$(PREFIX)/$(BINDIR) bin/"$$plugin" ; \
install -m 755 bin/"$$plugin"$(APP_EXT) $(DESTDIR)$(PREFIX)/$(BINDIR)/ ; \
done;
endif
install -t $(DESTDIR)$(PREFIX)/$(LIBDIR)/ladspa bin/*-ladspa.so
install -t $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst bin/*-vst.so
install -m 644 bin/*-ladspa$(LIB_EXT) $(DESTDIR)$(PREFIX)/$(LIBDIR)/ladspa/
install -m 644 bin/*-vst$(LIB_EXT) $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst/
install -m 644 bin/*.clap $(DESTDIR)$(PREFIX)/$(LIBDIR)/clap/

uninstall:
for plugin in $(PLUGINS); do \
rm -rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/lv2/"$$plugin".lv2 ; \
rm -f $(DESTDIR)$(PREFIX)/$(LIBDIR)/ladspa/"$$plugin"-ladspa.so ; \
rm -f $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst/"$$plugin"-vst.so ; \
rm -rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst3/"$$plugin".vst3 ; \
rm -f $(DESTDIR)$(PREFIX)/$(LIBDIR)/ladspa/"$$plugin"-ladspa$(LIB_EXT) ; \
rm -f $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst/"$$plugin"-vst$(LIB_EXT) ; \
rm -f $(DESTDIR)$(PREFIX)/$(LIBDIR)/vst/"$$plugin".clap ; \
rm -f $(DESTDIR)$(PREFIX)/$(BINDIR)/"$$plugin" ; \
done

Expand Down

0 comments on commit b853db1

Please sign in to comment.