This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
install-includeHEADERS
- From: Ted Irons <ironst at saic dot com>
- To: automake at gnu dot org
- Date: Fri, 22 Feb 2002 15:24:12 -0700
- Subject: install-includeHEADERS
- Organization: Science Applications
The way that C++ include files are
currently installed can trigger a multitude
of expensive recompilations (esp. if
the include files contain templates).
To change the way that C++ include files
are installed I am currently using
@INSTALL_HEADERS@
in the Makefile.am's
and using
INSTALL_HEADERS=${srcdir}/config/install_headers.mk
AC_SUBST_FILE(INSTALL_HEADERS)
in configure.ac; install_headers.mk contains:
install-includeHEADERS: $(include_HEADERS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(includedir)
list='$(include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
test -f "$(DESTDIR)$(includedir)/$$f" && \
diff $$d$$p $(DESTDIR)$(includedir)/$$f 2>&1 > /dev/null && \
continue; \
echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
$(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f; \
done
Any possibility of making the above behavior (or something
like it) the default behavior for install headers?
- Ted