# 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