aboutsummaryrefslogtreecommitdiff
path: root/nad/Makefile.am
blob: 71a0ea07945e2f97ebfa03d589f8ed411272785a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
	@if [ -f conus.lla ] ; then \
	  for x in *.lla ; do \
	    DEST=$(DESTDIR)$(pkgdatadir)/`basename $$x .lla`; \
	    echo "../src/nad2bin $$DEST < $$x"; \
	    ../src/nad2bin $$DEST < $$x ; \
	    if [ $$? -ne 0 ] ; then \
		echo "nad2bin failed to install $$DEST"; \
		exit 1; \
	    fi; \
	  done; \
	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