24 lines
518 B
Makefile
24 lines
518 B
Makefile
BUNDLE = super_saw.lv2
|
|
INSTALL_DIR = ./build
|
|
|
|
|
|
$(BUNDLE): manifest.ttl super_saw.ttl super_saw.so
|
|
rm -rf $(BUNDLE)
|
|
mkdir $(BUNDLE)
|
|
cp $^ $(BUNDLE)
|
|
|
|
super_saw.so: super_saw.cpp super_saw.peg
|
|
g++ -shared -fPIC -DPIC super_saw.cpp `pkg-config --cflags --libs lv2-plugin` -o super_saw.so
|
|
|
|
super_saw.peg: super_saw.ttl
|
|
lv2peg super_saw.ttl super_saw.peg
|
|
|
|
install: $(BUNDLE)
|
|
mkdir -p $(INSTALL_DIR)
|
|
rm -rf $(INSTALL_DIR)/$(BUNDLE)
|
|
cp -R $(BUNDLE) $(INSTALL_DIR)
|
|
|
|
clean:
|
|
rm -rf $(BUNDLE) super_saw.so super_saw.peg
|
|
|