summaryrefslogtreecommitdiff
path: root/project/install.mk
blob: 4d91dd7f14b61cec0954068395b6fdc2facbe26e (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
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
# install.mk: rules for installation of raw, generated, and overlay files.
# this file is covered by COPYING.BAUTOMAKE.

AUTOMAKE_DEST_AC_DIR  = $(DESTDIR)$(DATADIR)/aclocal
AUTOMAKE_DEST_M4_DIR  = $(DESTDIR)$(DATADIR)/aclocal-$(AUTOMAKE_VER)
AUTOMAKE_DEST_CFG_DIR = $(DESTDIR)$(DATADIR)/aclocal-$(AUTOMAKE_VER)/internal
AUTOMAKE_DEST_AM_DIR  = $(DESTDIR)$(DATADIR)/automake-$(AUTOMAKE_VER)/am
AUTOMAKE_DEST_PM_DIR  = $(DESTDIR)$(DATADIR)/automake-$(AUTOMAKE_VER)/Automake
AUTOMAKE_DEST_LIB_DIR = $(DESTDIR)$(DATADIR)/automake-$(AUTOMAKE_VER)
AUTOMAKE_DEST_MAN_DIR = $(DESTDIR)$(MANDIR)/man1
AUTOMAKE_DEST_BIN_DIR = $(DESTDIR)$(BINDIR)

AUTOMAKE_ALT_SRC_FILES = \
	$(PROJECT_DIR)/./src/config.sub  \
	$(PROJECT_DIR)/./src/config.guess \
	$(PROJECT_DIR)/./COPYING.BAUTOMAKE

install-ac-files:
	mkdir -p $(AUTOMAKE_DEST_AC_DIR)
	cp -p $(SOURCE_DIR)/m4/acdir/README $(AUTOMAKE_DEST_AC_DIR)

install-m4-files:
	mkdir -p $(AUTOMAKE_DEST_M4_DIR)
	cp -p $(AUTOMAKE_M4_SOURCE_FILES) $(AUTOMAKE_DEST_M4_DIR)

install-am-files:
	mkdir -p $(AUTOMAKE_DEST_AM_DIR)
	cp -p $(AUTOMAKE_AM_SOURCE_FILES) $(AUTOMAKE_DEST_AM_DIR)

install-pm-files:
	mkdir -p $(AUTOMAKE_DEST_PM_DIR)
	cp -p $(AUTOMAKE_PM_SOURCE_FILES) $(AUTOMAKE_DEST_PM_DIR)

install-lib-files:
	mkdir -p $(AUTOMAKE_DEST_LIB_DIR)
	cp -p $(AUTOMAKE_LIB_SOURCE_FILES) $(AUTOMAKE_ALT_SRC_FILES) $(AUTOMAKE_DEST_LIB_DIR)

install-man-files: $(MAN_GEN_SRCS)
	mkdir -p $(AUTOMAKE_DEST_MAN_DIR)
	cp -p $(MAN_GEN_SRCS) $(AUTOMAKE_DEST_MAN_DIR)

install-m4-gen-files: $(M4_GEN_SRCS)
	mkdir -p $(AUTOMAKE_DEST_M4_DIR)
	cp -p $(M4_GEN_SRCS) $(AUTOMAKE_DEST_M4_DIR)

install-pm-gen-files: $(LIB_GEN_SRCS)
	mkdir -p $(AUTOMAKE_DEST_PM_DIR)
	cp -p $(LIB_GEN_SRCS) $(AUTOMAKE_DEST_PM_DIR)

install-cfg-files:
	mkdir -p $(AUTOMAKE_DEST_CFG_DIR)
	cp -p $(AUTOMAKE_CFG_SOURCE_FILES) $(AUTOMAKE_DEST_CFG_DIR)

install-bin-files: $(BIN_GEN_SRCS)
	mkdir -p $(AUTOMAKE_DEST_BIN_DIR)
	cp -p $(BIN_GEN_SRCS) $(AUTOMAKE_DEST_BIN_DIR)
	ln -s aclocal-$(AUTOMAKE_VER) $(AUTOMAKE_DEST_BIN_DIR)/aclocal.tmp
	mv $(AUTOMAKE_DEST_BIN_DIR)/aclocal.tmp $(AUTOMAKE_DEST_BIN_DIR)/aclocal
	ln -s automake-$(AUTOMAKE_VER) $(AUTOMAKE_DEST_BIN_DIR)/automake.tmp
	mv $(AUTOMAKE_DEST_BIN_DIR)/automake.tmp $(AUTOMAKE_DEST_BIN_DIR)/automake

install: install-ac-files
install: install-m4-files
install: install-am-files
install: install-pm-files

install: install-cfg-files
install: install-lib-files
install: install-man-files
install: install-bin-files

install: install-m4-gen-files
install: install-pm-gen-files