From e0b9f53eecd42e6cd65414ff3d8ae71c6b9bd1a7 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Thu, 7 Jul 2005 01:34:27 +0000 Subject: added logic to install all gsb files git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1300 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- nad/Makefile.am | 10 ++++++---- nad/Makefile.in | 12 +++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/nad/Makefile.am b/nad/Makefile.am index 55a6327e..87dfd5ae 100644 --- a/nad/Makefile.am +++ b/nad/Makefile.am @@ -19,9 +19,11 @@ install-data-local: else \ echo "nad2nad NADCON source files not present"; \ fi - @if [ -f ntv1_can.dat ] ; then \ - echo $(INSTALL_DATA) ntv1_can.dat $(DESTDIR)$(pkgdatadir)/ntv1_can.dat; \ - $(INSTALL_DATA) ntv1_can.dat $(DESTDIR)$(pkgdatadir)/ntv1_can.dat; \ - fi + @for gridfile in *.gsb ntv1_can.dat dummy ; do \ + if test "$$gridfile" != "dummy" -a -f "$$gridfile" ; then \ + echo $(INSTALL_DATA) $$gridfile $(DESTDIR)$(pkgdatadir)/$$gridfile; \ + $(INSTALL_DATA) $$gridfile $(DESTDIR)$(pkgdatadir)/$$gridfile; \ + fi; \ + done diff --git a/nad/Makefile.in b/nad/Makefile.in index 101e7646..ac3b0d80 100644 --- a/nad/Makefile.in +++ b/nad/Makefile.in @@ -151,7 +151,7 @@ target_alias = @target_alias@ pkgdata_DATA = GL27 nad.lst nad27 nad83 proj_def.dat world epsg esri EXTRA_DIST = GL27 nad.lst nad27 nad83 pj_out27.dist pj_out83.dist td_out.dist \ proj_def.dat test27 test83 world epsg esri \ - testvarious testntv2 + testvarious testntv2 ntv2_out.dist all: all-am @@ -350,10 +350,12 @@ install-data-local: else \ echo "nad2nad NADCON source files not present"; \ fi - @if [ -f ntv1_can.dat ] ; then \ - echo $(INSTALL_DATA) ntv1_can.dat $(DESTDIR)$(pkgdatadir)/ntv1_can.dat; \ - $(INSTALL_DATA) ntv1_can.dat $(DESTDIR)$(pkgdatadir)/ntv1_can.dat; \ - fi + @for gridfile in *.gsb ntv1_can.dat dummy ; do \ + if test "$$gridfile" != "dummy" -a -f "$$gridfile" ; then \ + echo $(INSTALL_DATA) $$gridfile $(DESTDIR)$(pkgdatadir)/$$gridfile; \ + $(INSTALL_DATA) $$gridfile $(DESTDIR)$(pkgdatadir)/$$gridfile; \ + fi; \ + done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: -- cgit v1.2.3