2010-09-26 21:21:03 +00:00
|
|
|
#############################################################################
|
|
|
|
# $Id: Makefile 3940 2009-03-30 09:30:43Z mloskot $
|
|
|
|
#
|
|
|
|
# Master makefile used to build WKT Raster
|
|
|
|
#
|
|
|
|
# Copyright (c) 2009 Sandro Santilli <strk@keybit.net>
|
|
|
|
#
|
|
|
|
# This is free software; you can redistribute and/or modify it under
|
|
|
|
# the terms of the GNU General Public Licence. See the COPYING file.
|
|
|
|
#
|
|
|
|
#############################################################################
|
2010-10-22 14:00:49 +00:00
|
|
|
|
|
|
|
BUILD_RASTER=@BUILD_RASTER@
|
|
|
|
|
2010-09-26 21:21:03 +00:00
|
|
|
all: @RT_CORE_LIB@ @RT_PG_LIB@ @RT_POSTGIS_SQL@
|
|
|
|
|
|
|
|
corelib:
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C rt_core
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
|
|
|
pglib:
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C rt_pg
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
|
|
|
rtpostgis.sql:
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C rt_pg rtpostgis.sql
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
|
|
|
install: all
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C rt_pg install
|
|
|
|
$(MAKE) -C scripts/python install
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
2010-12-10 17:57:54 +00:00
|
|
|
uninstall:
|
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
|
|
|
$(MAKE) -C rt_pg uninstall
|
|
|
|
$(MAKE) -C scripts/python uninstall
|
|
|
|
endif
|
|
|
|
|
2010-09-26 21:21:03 +00:00
|
|
|
clean:
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C rt_core $@
|
|
|
|
$(MAKE) -C rt_pg $@
|
|
|
|
$(MAKE) -C test $@
|
|
|
|
$(MAKE) -C scripts/python $@
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(RM) -R autom4te.cache
|
|
|
|
$(RM) config.status
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
|
|
|
check:
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C test $@
|
|
|
|
@echo
|
|
|
|
@echo "Consider also running make post-install-check after installation"
|
|
|
|
@echo
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|
2010-09-26 21:21:03 +00:00
|
|
|
|
|
|
|
post-install-check:
|
2010-10-22 14:00:49 +00:00
|
|
|
ifeq ($(BUILD_RASTER), yes)
|
2010-09-26 21:21:03 +00:00
|
|
|
$(MAKE) -C test $@
|
2010-10-22 14:00:49 +00:00
|
|
|
endif
|