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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
include ../../GDALmake.opt
all: generate build
BINDING = perl
SWIGDEFINES = -DPERL_CPAN_NAMESPACE
include ../SWIGmake.base
generate: ${WRAPPERS}
if [ ! -d lib ]; then mkdir lib; fi
if [ ! -d "lib/Geo" ]; then mkdir "lib/Geo"; fi
if [ ! -d "lib/Geo/GDAL" ]; then mkdir "lib/Geo/GDAL"; fi
if [ -f GDAL.pm ]; then mv GDAL.pm lib/Geo; fi
if [ -f Const.pm ]; then mv Const.pm lib/Geo/GDAL; fi
if [ -f OGR.pm ]; then mv OGR.pm lib/Geo; fi
if [ -f OSR.pm ]; then mv OSR.pm lib/Geo; fi
build: Makefile_Geo__GDAL gdal_wrap.cc
$(MAKE) -f Makefile_Geo__GDAL
$(MAKE) -f Makefile_Geo__GDAL__Const
$(MAKE) -f Makefile_Geo__OGR
$(MAKE) -f Makefile_Geo__OSR
gdal_wrap.cc: generate
Makefile_Geo__GDAL:
perl Makefile.PL INSTALLDIRS=vendor
test: build
$(MAKE) -f Makefile_Geo__GDAL test
install: build
$(MAKE) -f Makefile_Geo__GDAL install
$(MAKE) -f Makefile_Geo__GDAL__Const install
$(MAKE) -f Makefile_Geo__OGR install
$(MAKE) -f Makefile_Geo__OSR install
dist: Makefile_Geo__GDAL
$(MAKE) -f Makefile_Geo__GDAL dist
clean:
-rm -f gdal.bs gdal_wrap.o
-rm -f gdalconst.bs gdalconst_wrap.o
-rm -f ogr.bs ogr_wrap.o
-rm -f osr.bs osr_wrap.o
-rm -rf blib
-rm -f pm_to_blib
-rm -f Makefile_Geo__GDAL Makefile_Geo__GDAL__Const Makefile_Geo__OGR Makefile_Geo__OSR
veryclean: clean
-rm -f ${WRAPPERS}
-rm -f gdal.pm gdalconst.pm osr.pm ogr.pm
doc:
doxygen
|