1 | # Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2012 |
---|
2 | # |
---|
3 | # This file is part of roard a part of RoarAudio, |
---|
4 | # a cross-platform sound system for both, home and professional use. |
---|
5 | # See README for details. |
---|
6 | # |
---|
7 | # This file is free software; you can redistribute it and/or modify |
---|
8 | # it under the terms of the GNU General Public License version 3 |
---|
9 | # as published by the Free Software Foundation. |
---|
10 | # |
---|
11 | # RoarAudio is distributed in the hope that it will be useful, |
---|
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | # GNU General Public License for more details. |
---|
15 | # |
---|
16 | # You should have received a copy of the GNU General Public License |
---|
17 | # along with this software; see the file COPYING. If not, write to |
---|
18 | # the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
19 | # Boston, MA 02110-1301, USA. |
---|
20 | |
---|
21 | RABS_INSTALL_TARGETS_PREP_DIRS := $(foreach c,$(RABS_INSTALL_TARGETS),prep-install-dirs-$c) |
---|
22 | RABS_INSTALL_TARGETS_INSTALL := $(foreach c,$(RABS_INSTALL_TARGETS),install-$c) |
---|
23 | RABS_INSTALL_TARGETS_SEMI_INSTALL := $(foreach c,$(RABS_INSTALL_TARGETS),semi-install-$c) |
---|
24 | RABS_INSTALL_TARGETS_UNINSTALL := $(foreach c,$(RABS_INSTALL_TARGETS),uninstall-$c) |
---|
25 | |
---|
26 | prep-install-dirs: $(RABS_INSTALL_TARGETS_PREP_DIRS) |
---|
27 | prep-install: all prep-install-dirs |
---|
28 | install: $(RABS_INSTALL_TARGETS_INSTALL) |
---|
29 | semi-install: $(RABS_INSTALL_TARGETS_SEMI_INSTALL) |
---|
30 | uninstall: $(RABS_INSTALL_TARGETS_UNINSTALL) |
---|
31 | |
---|
32 | prep-install-dirs-bin: |
---|
33 | mkdir -p '$(DESTDIR)$(PREFIX_BIN)' |
---|
34 | mkdir -p '$(DESTDIR)$(PREFIX_MAN)'/man1/ |
---|
35 | prep-install-dirs-header: |
---|
36 | mkdir -p '$(DESTDIR)$(PREFIX_INC)'/'$(HEADER_PREFIX)' |
---|
37 | prep-install-dirs-lib: prep-install-dirs-header |
---|
38 | mkdir -p '$(DESTDIR)$(PREFIX_LIB)' |
---|
39 | mkdir -p '$(DESTDIR)$(PREFIX_PC)' |
---|
40 | mkdir -p '$(DESTDIR)$(PREFIX_MAN)'/man3/ |
---|
41 | |
---|
42 | prep-install-bin: all prep-install-dirs-bin |
---|
43 | prep-install-header: all prep-install-dirs-header |
---|
44 | prep-install-lib: all prep-install-dirs-lib |
---|
45 | |
---|
46 | install-bin: prep-install-bin |
---|
47 | cp $(cp_v) $(TARGET) '$(DESTDIR)$(PREFIX_BIN)' |
---|
48 | cp $(cp_v) $(MANPAGE_1) '$(DESTDIR)$(PREFIX_MAN)'/man1/ |
---|
49 | |
---|
50 | semi-install-bin: prep-install-bin |
---|
51 | ln -fs `pwd`/$(TARGET) '$(DESTDIR)$(PREFIX_BIN)' |
---|
52 | ln -fs `pwd`/$(MANPAGE_1) '$(DESTDIR)$(PREFIX_MAN)'/man1/ |
---|
53 | |
---|
54 | uninstall-bin: |
---|
55 | rm -f '$(DESTDIR)$(PREFIX_BIN)/$(TARGET)' |
---|
56 | rm -f '$(DESTDIR)$(PREFIX_MAN)/man1/$(MANPAGE_1)' |
---|