diff options
Diffstat (limited to 'project')
-rw-r--r-- | project/extras.mk | 1 | ||||
-rw-r--r-- | project/install.mk | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk index f08cae8..9e74295 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,2 +1,3 @@ include $(PROJECT_DIR)/project/srcgen.mk +include $(PROJECT_DIR)/project/install.mk diff --git a/project/install.mk b/project/install.mk new file mode 100644 index 0000000..d2d4822 --- /dev/null +++ b/project/install.mk @@ -0,0 +1,62 @@ +# 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_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) + +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_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-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-lib-files +install: install-man-files +install: install-bin-files + +install: install-m4-gen-files +install: install-pm-gen-files |