summaryrefslogtreecommitdiff
path: root/build-0.3/install/configuration.make
blob: d7ece48181a71c53840269efcbde0d850e3ea4de (plain)
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
# file      : build/install/configuration.make
# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC
# license   : GNU GPL v2; see accompanying LICENSE file

install_prefix       := /usr/local
install_data_prefix  := $(install_prefix)
install_exec_prefix  := $(install_prefix)

install_bin_dir      := $(install_exec_prefix)/bin
install_sbin_dir     := $(install_exec_prefix)/sbin
install_lib_dir      := $(install_exec_prefix)/lib

install_data_dir     := $(install_data_prefix)/share
install_inc_dir      := $(install_data_prefix)/include

install_doc_dir      := $(install_data_dir)/doc
install_man_dir      := $(install_data_dir)/man
install_info_dir     := $(install_data_dir)/info

$(out_root)/%: install_bin_dir  := $(install_bin_dir)
$(out_root)/%: install_sbin_dir := $(install_sbin_dir)
$(out_root)/%: install_lib_dir  := $(install_lib_dir)

$(out_root)/%: install_inc_dir  := $(install_inc_dir)
$(out_root)/%: install_data_dir := $(install_data_dir)

$(out_root)/%: install_doc_dir  := $(install_doc_dir)
$(out_root)/%: install_man_dir  := $(install_man_dir)
$(out_root)/%: install_info_dir := $(install_info_dir)

install_cmd  := $(bld_root)/install/install

install_dir  := $(install_cmd) -d -m 755
install_data := $(install_cmd) -p -m 644
install_exec := $(install_cmd) -p -m 755

$(out_root)/%: install_dir  := $(install_dir)
$(out_root)/%: install_data := $(install_data)
$(out_root)/%: install_exec := $(install_exec)


#@@ Installation process is very os-dependant. For example
#   on BSD there is libexec but there is no such thing on
#   GNU/Linux.
#