]> granicus.if.org Git - postgis/commitdiff
installdirs/clean rules cleanup suggested by Alex Bodnaru
authorSandro Santilli <strk@keybit.net>
Mon, 14 Mar 2005 11:14:26 +0000 (11:14 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 14 Mar 2005 11:14:26 +0000 (11:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1533 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/Makefile

index a21ad46fc20fbcc7c72fe15959b1e68fe6cd9d7b..f0e233d57e7f3967d34185b84eecfb0a4a744803 100644 (file)
@@ -84,7 +84,7 @@ SA_OBJS=measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lw
 OBJS=$(SA_OBJS) liblwgeom.o lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o $(JTS_OBJ) 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 lwgeom_triggers.o lwgeom_dump.o
 
 #OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h lwpostgis.sql
-OTHERS=y.output lwpostgis.sql
+OTHERS=y.output lwpostgis.sql postgis_geos_version.h
 
 
 #---------------------------------------------------------------
@@ -167,7 +167,9 @@ detect_geos_version:
        sh ../geos_version.sh $(GEOS_DIR) > postgis_geos_version.h
 
 installdirs:
-       $(mkinstalldirs) $(libdir)
+       $(mkinstalldirs) $(DESTDIR)$(MODULE_INSTALLDIR)
+       $(mkinstalldirs) $(DESTDIR)$(datadir)/contrib
+       $(mkinstalldirs) $(DESTDIR)$(docdir)/contrib
 
 uninstall-lwgeom-scripts:
        rm -f $(DESTDIR)$(datadir)/contrib/lwpostgis.sql
@@ -177,7 +179,7 @@ uninstall-lwgeom-scripts:
 uninstall: uninstall-lib uninstall-lwgeom-scripts
 
 clean distclean: clean-lib
-       rm -f *.o *.so *.a test postgis_geos_version.h lwpostgis.sql
+       rm -f *.o *.so *.a test $(OTHERS)
 
 maintainer-clean: clean
        rm  -f lex.yy.c wktparse.tab.c wktparse.tab.h