Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honour $PREFIX and $LV2DIR if set #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@

PREFIX = /usr
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXXFLAGS += `pkg-config --cflags lv2`

all: build

build:
Expand Down Expand Up @@ -63,7 +66,7 @@ install: all
$(MAKE) install -C plugins/mod-caps-Wider.lv2

uninstall:
-rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/mod-caps-*.lv2/
-rm -rf $(DESTDIR)$(LV2DIR)/mod-caps-*.lv2/

clean:
rm -f *.o dsp/*.o
Expand Down
5 changes: 3 additions & 2 deletions Makefile.single
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = __EFFECT__
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-AmpVTS.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = AmpVTS
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-AutoFilter.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = AutoFilter
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-CEO.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = CEO
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-CabinetIII.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = CabinetIII
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-CabinetIV.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = CabinetIV
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-ChorusI.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = ChorusI
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Click.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Click
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Compress.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Compress
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-CompressX2.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = CompressX2
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Eq10.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Eq10
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Eq10X2.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Eq10X2
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Eq4p.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Eq4p
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-EqFA4p.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = EqFA4p
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Fractal.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Fractal
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Narrower.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Narrower
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Noisegate.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Noisegate
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-PhaserII.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = PhaserII
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Plate.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Plate
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-PlateX2.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = PlateX2
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
5 changes: 3 additions & 2 deletions plugins/mod-caps-Saturate.lv2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION = 0.9.26

PREFIX = /usr/local
PREFIX ?= /usr/local
LV2DIR ?= $(PREFIX)/lib/lv2
DESTDIR =

CXX ?= g++
Expand Down Expand Up @@ -30,7 +31,7 @@ OBJECTS = $(SOURCES:.cc=.o)
PLUG = Saturate
BUNDLE = mod-caps-$(PLUG).lv2
ifndef LV2_DEST
LV2DEST = $(PREFIX)/lib/lv2/$(BUNDLE)
LV2DEST = $(LV2DIR)/$(BUNDLE)
else
LV2DEST = $(LV2_DEST)/$(BUNDLE)
endif
Expand Down
Loading