From dc26fdb4fc383c981f2fc7d937a98768916ea906 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 4 Nov 2004 08:56:48 +0000 Subject: [PATCH] Moved lwpostgis.sql.in and it's build logic up to root directory. git-svn-id: http://svn.osgeo.org/postgis/trunk@1079 b70326c6-7e19-0410-871a-916f4a2858ee --- Makefile | 19 +++++++++++++++---- lwgeom/Makefile | 17 ++++------------- lwgeom/lwpostgis.sql.in => lwpostgis.sql.in | 0 3 files changed, 19 insertions(+), 17 deletions(-) rename lwgeom/lwpostgis.sql.in => lwpostgis.sql.in (100%) diff --git a/Makefile b/Makefile index 54245fa8f..60221b1b2 100644 --- a/Makefile +++ b/Makefile @@ -4,18 +4,19 @@ # #----------------------------------------------------- -all: liblwgeom loaderdumper +include Makefile.config -install: all liblwgeom-install loaderdumper-install +all: liblwgeom loaderdumper lwpostgis.sql -uninstall: liblwgeom-uninstall loaderdumper-uninstall +install: all liblwgeom-install loaderdumper-install install-lwgeom-scripts + +uninstall: liblwgeom-uninstall loaderdumper-uninstall uninstall-lwgeom-scripts clean: liblwgeom-clean loaderdumper-clean rm -f lwpostgis.sql liblwgeom: $(MAKE) -C lwgeom - cp lwgeom/lwpostgis.sql lwpostgis.sql liblwgeom-clean: $(MAKE) -C lwgeom clean @@ -37,3 +38,13 @@ loaderdumper-install: loaderdumper-uninstall: $(MAKE) -C loader uninstall + +lwpostgis.sql: lwpostgis.sql.in + cpp -P -traditional-cpp -DUSE_VERSION=$(USE_VERSION) $< | sed -e 's:@MODULE_FILENAME@:$(MODULE_FILENAME):g;s:@POSTGIS_VERSION@:$(POSTGIS_VERSION):g;s:@POSTGIS_SCRIPTS_VERSION@:$(SCRIPTS_VERSION):g' > $@ + +install-lwgeom-scripts: + $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(datadir) + +uninstall-lwgeom-scripts: + rm -f $(DESTDIR)$(datadir)/lwpostgis.sql + diff --git a/lwgeom/Makefile b/lwgeom/Makefile index 21e7c02e5..af6d27044 100644 --- a/lwgeom/Makefile +++ b/lwgeom/Makefile @@ -76,7 +76,7 @@ endif SA_OBJS=misures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o $(GEOS_WRAPPER) wktunparse.o lwgparse.o wktparse.tab.o lex.yy.o vsprintf.o OBJS=$(SA_OBJS) liblwgeom.o lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_geos.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_svg.o lwgeom_gml.o -OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h lwpostgis.sql +OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h #--------------------------------------------------------------- @@ -113,17 +113,11 @@ lwgeom_geos.o: lwgeom_geos.c profile.h lwgeom_functions_basic.o: lwgeom_functions_basic.c profile.h -all: $(GEOS_RULES) all-lib lwpostgis.sql +all: $(GEOS_RULES) all-lib # Shared library stuff -lwpostgis.sql: lwpostgis.sql.in - cpp -P -traditional-cpp -DUSE_VERSION=$(USE_VERSION) $< | sed -e 's:@MODULE_FILENAME@:$(MODULE_FILENAME):g;s:@POSTGIS_VERSION@:$(POSTGIS_VERSION):g;s:@POSTGIS_SCRIPTS_VERSION@:$(SCRIPTS_VERSION):g' > $@ - -install: all installdirs install-lwgeom-lib install-lwgeom-scripts - -install-lwgeom-scripts: - $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(datadir) +install: all installdirs install-lwgeom-lib #- This has been copied from postgresql and adapted install-lwgeom-lib: $(shlib) @@ -149,10 +143,7 @@ detect_geos_version: installdirs: $(mkinstalldirs) $(libdir) -uninstall-lwgeom-scripts: - rm -f $(DESTDIR)$(datadir)/lwpostgis.sql - -uninstall: uninstall-lib uninstall-lwgeom-scripts +uninstall: uninstall-lib clean distclean maintainer-clean: clean-lib rm -f $(OBJS) diff --git a/lwgeom/lwpostgis.sql.in b/lwpostgis.sql.in similarity index 100% rename from lwgeom/lwpostgis.sql.in rename to lwpostgis.sql.in -- 2.40.0