diff options
| -rw-r--r-- | nad/Makefile.am | 10 | ||||
| -rw-r--r-- | 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: |
