]> granicus.if.org Git - postgis/commitdiff
Oops.. my attemt at moving lwpostgis.sql.in one dir up was bogus.
authorSandro Santilli <strk@keybit.net>
Thu, 4 Nov 2004 09:18:06 +0000 (09:18 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 4 Nov 2004 09:18:06 +0000 (09:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1080 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile
lwgeom/Makefile
lwgeom/lwpostgis.sql.in [moved from lwpostgis.sql.in with 100% similarity]

index 60221b1b2afbeeda5510eabef1a67ccd56b9e97a..54245fa8f46945d469df512a9a53a595242432e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,19 +4,18 @@
 #
 #-----------------------------------------------------
 
-include Makefile.config
+all: liblwgeom loaderdumper
 
-all: liblwgeom loaderdumper lwpostgis.sql
+install: all liblwgeom-install loaderdumper-install
 
-install: all liblwgeom-install loaderdumper-install install-lwgeom-scripts
-
-uninstall: liblwgeom-uninstall loaderdumper-uninstall uninstall-lwgeom-scripts
+uninstall: liblwgeom-uninstall loaderdumper-uninstall
 
 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
@@ -38,13 +37,3 @@ 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
-
index af6d27044b7a804244f926e914e2255019e7635c..21e7c02e506819a8cd31087e6190240242339258 100644 (file)
@@ -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
+OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h lwpostgis.sql
 
 
 #---------------------------------------------------------------
@@ -113,11 +113,17 @@ lwgeom_geos.o: lwgeom_geos.c profile.h
 
 lwgeom_functions_basic.o: lwgeom_functions_basic.c profile.h
 
-all: $(GEOS_RULES) all-lib
+all: $(GEOS_RULES) all-lib lwpostgis.sql
 
 # Shared library stuff
 
-install: all installdirs install-lwgeom-lib
+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)
 
 #- This has been copied from postgresql and adapted
 install-lwgeom-lib: $(shlib)
@@ -143,7 +149,10 @@ detect_geos_version:
 installdirs:
        $(mkinstalldirs) $(libdir)
 
-uninstall: uninstall-lib
+uninstall-lwgeom-scripts:
+       rm -f $(DESTDIR)$(datadir)/lwpostgis.sql
+
+uninstall: uninstall-lib uninstall-lwgeom-scripts
 
 clean distclean maintainer-clean: clean-lib
        rm -f $(OBJS) 
similarity index 100%
rename from lwpostgis.sql.in
rename to lwgeom/lwpostgis.sql.in