automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

install-includeHEADERS


From: Ted Irons
Subject: install-includeHEADERS
Date: Fri, 22 Feb 2002 15:24:12 -0700

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]