1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
# Copyright (C) 2009 Fraser Stuart
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
#####################################################################
# PLEASE CHANGE THIS to your preferred installation location!
#
# Change this if you want to install somewhere else.
INSTALL_SYS_PLUGINS_DIR = /usr/local/lib/lv2
INSTALL_USER_PLUGINS_DIR = ~/.lv2
INSTALL_BUNDLE_DIR = invada.lv2
# NO EDITING below this line is required
# if all you want to do is install and use the plugins.
#####################################################################
# GENERAL
SUBDIRS = plugin/library plugin plugingui/widgets plugingui
GLADEDIRS = plugingui/gtk
DESTDIR = ""
all:
@for i in $(SUBDIRS); do \
echo ""; \
echo "=================================="; \
echo "make all in $$i"; \
echo "=================================="; \
(cd $$i; $(MAKE) ); done
@echo ""
glade:
@for i in $(GLADEDIRS); do \
echo ""; \
echo "=================================="; \
echo "make all in $$i"; \
echo "=================================="; \
(cd $$i; $(MAKE) ); done
@echo ""
# OTHER TARGETS
install:
@echo ""
@echo "use 'make install-user' to install in $(INSTALL_USER_PLUGINS_DIR) or 'make install-sys' to install in $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)"
@echo ""
install-sys:
@echo ""
@echo "==================================";
@echo "Installing into $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)";
@echo "==================================";
-mkdir -p $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
-mkdir -p $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)/gtk
cp plugin/*.so $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
cp plugingui/*.so $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
cp rdf/*.ttl $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
cp plugingui/gtk/*.png $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)/gtk
cp plugingui/gtk/*.xml $(DESTDIR)$(INSTALL_SYS_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)/gtk
@echo ""
install-user:
@echo ""
@echo "==================================";
@echo "Installing into $(INSTALL_USER_PLUGINS_DIR)";
@echo "==================================";
-mkdir -p $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
-mkdir -p $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)/gtk
cp plugin/*.so $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
cp plugingui/*.so $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
cp rdf/*.ttl $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)
cp plugingui/gtk/*.png $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)/gtk
cp plugingui/gtk/*.xml $(INSTALL_USER_PLUGINS_DIR)/$(INSTALL_BUNDLE_DIR)/gtk
@echo ""
always:
clean:
@echo ""
-rm -f `find . -name "*.so"`
-rm -f `find . -name "*.a"`
-rm -f `find . -name "*.o"`
-rm -f `find . -name "*~"`
@echo ""
veryclean:
@echo ""
-rm -f `find . -name "*.so"`
-rm -f `find . -name "*.a"`
-rm -f `find . -name "*.o"`
-rm -f `find . -name "*.xml"`
-rm -f `find . -name "*~"`
@echo ""
|