From fef5564a64870ce438d0b1185df521fd54126171 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 5 Mar 2011 14:18:25 +0100 Subject: build: Change dubious wildcard stuff to use += Also make sure that the list of files is updated on "make dist". --- Makefile.am | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e2565ec..c624c8b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,9 +32,28 @@ ACLOCAL_AMFLAGS = -I m4 -nobase_pkginclude_HEADERS=raslib/*.h raslib/*.hh raslib/*.icc raslib/*.cc \ - rasodmg/*.hh rasodmg/*.cc rasodmg/*.icc conversion/*.h conversion/*.hh \ - compression/*.hh clientcomm/*.h clientcomm/*.hh +nobase_pkginclude_HEADERS = +include $(srcdir)/header-files.mk + +dist-hook: + (echo "# DO NOT MODIFY THIS FILE"; \ + echo "# This file was autogenerated by the dist-hook target"; \ + cd "$(srcdir)"; \ + find raslib -type f \ + \( -name '*.h' -or -name '*.hh' -or -name '*.icc' -or -name '*.cc' \) ; \ + find rasodmg -type f \ + \( -name '*.hh' -or -name '*.cc' -or -name '*.icc' \) ; \ + find conversion -type f \( -name '*.h' -or -name '*.hh' \) ; \ + find compression -type f -name '*.hh' ; \ + find clientcomm -type f \( -name '*.h' -or -name '*.hh' \) \ + ) | $(SED) 's,^\([^#]\),nobase_pkginclude_HEADERS += \1,' \ + > header-files.mk.new + if test -f "$(srcdir)/header-files.mk" \ + && cmp "header-files.mk.new" "$(srcdir)/header-files.mk"; then \ + rm -f "header-files.mk.new"; \ + else \ + mv -f "header-files.mk.new" "$(srcdir)/header-files.mk"; \ + fi SUBDIRS = relblobif relindexif relmddif relcatalogif reladminif relstorageif \ indexmgr catalogmgr tilemgr storagemgr compression commline network \ -- cgit