]> granicus.if.org Git - postgis/commitdiff
Fix "make clean" to drop all generated files
authorSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 16:26:53 +0000 (16:26 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 16:26:53 +0000 (16:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9312 b70326c6-7e19-0410-871a-916f4a2858ee

topology/Makefile.in

index 2f4a849e030097ef284b646f8868b5101162c1cf..d472588cc8be678a4d3e59bf2fa2e67f9e5f678c 100644 (file)
@@ -27,10 +27,14 @@ MODULEDIR=contrib/$(PGIS_MODULE_big)
 DATA_built=topology.sql topology_upgrade_20_minor.sql uninstall_topology.sql
 
 # SQL objects (files requiring C pre-processing)
-SQL_OBJS=topology.sql.in topology_drop_before.sql.in topology_drop_after.sql.in
+SQL_OBJS = \
+  topology.sql \
+  topology_upgrade.sql \
+  topology_drop_before.sql \
+  topology_drop_after.sql
 
 # Extra files to remove during 'make clean'
-EXTRA_CLEAN=$(SQL_OBJS)
+EXTRA_CLEAN=$(SQL_OBJS) $(SQL_OBJS:.sql=.sql.in)
 
 # PGXS information
 PG_CONFIG = @PGCONFIG@ 
@@ -70,7 +74,7 @@ endif
        sed 's,MODULE_PATHNAME,$$libdir/$*,g' $< >$@
 
 # Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor 
-$(SQL_OBJS): %.in: %.in.c
+%.in: %.in.c
        $(CPP) -traditional-cpp $< | grep -v '^#' > $@
        
 #Generate upgrade script by stripping things that can't be reinstalled