File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ PACKAGE =digital_land
2+
3+ # Variablles to overide for testing
4+ # MAKERULES_URL=https://raw.githubusercontent.com/digital-land/makerules/<branch-name>/
5+
6+ include makerules/makerules.mk
7+ include makerules/python.mk
8+
9+ GDAL := $(shell command -v ogr2ogr 2> /dev/null)
10+ SQLDIFF := $(shell command -v sqldiff 2> /dev/null)
11+ UNAME := $(shell uname)
12+
13+ ifeq ($(UNAME ) ,Darwin)
14+ SPATIAL := $(shell ls /usr/local/lib/*spatialite* 2> /dev/null)
15+ else
16+ SPATIAL := $(shell ls /usr/lib/x86_64-linux-gnu/*spatialite* 2> /dev/null)
17+ endif
18+
19+ # install dependencies
20+ init ::
21+ ifndef GDAL
22+ ifeq ($(UNAME ) ,Darwin)
23+ $(error GDAL tools not found in PATH)
24+ endif
25+ sudo add-apt-repository ppa:ubuntugis/ppa
26+ sudo apt-get update
27+ sudo apt-get install gdal-bin
28+ gdalinfo --version
29+ endif
30+ ifndef SQLDIFF
31+ ifeq ($(UNAME ) ,Darwin)
32+ $(error sqldiff not found in PATH)
33+ endif
34+ sudo apt-get install sqlite3
35+ endif
36+ ifndef SPATIAL
37+ ifeq ($(UNAME ) ,Darwin)
38+ $(error GDAL tools not found in PATH)
39+ endif
40+ sudo apt-get install libsqlite3-mod-spatialite -y
41+ endif
42+ pyproj sync --file uk_os_OSTN15_NTv2_OSGBtoETRS.tif -v
43+ # install pre-commits
44+ pre-commit install
45+
46+ # Build documentation with Sphinx use for deploying documentation
47+ .PHONY : docs
48+ docs :
49+ sphinx-apidoc -o docs/ digital_land
50+ sphinx-build -b html docs/ docs/_build
51+
52+ # Serve the documentation locally with live-reloading. Use this for local building
53+ serve-docs :
54+ sphinx-apidoc -o docs/ digital_land
55+ sphinx-autobuild docs/ docs/_build --host 0.0.0.0 --port 8000
56+
57+ # Clean up the generated documentation
58+ clean ::
59+ rm -rf docs/_build
60+
You can’t perform that action at this time.
0 commit comments