From aae8d047e95d2468b5b6897b7d77f55b583403f1 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 27 Feb 2012 16:26:53 +0000 Subject: [PATCH] Fix "make clean" to drop all generated files git-svn-id: http://svn.osgeo.org/postgis/trunk@9312 b70326c6-7e19-0410-871a-916f4a2858ee --- topology/Makefile.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/topology/Makefile.in b/topology/Makefile.in index 2f4a849e0..d472588cc 100644 --- a/topology/Makefile.in +++ b/topology/Makefile.in @@ -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 -- 2.40.0