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