dnl Output the relevant files
AC_OUTPUT([GNUmakefile
+ extensions/Makefile
extensions/postgis/Makefile
extensions/postgis/postgis.control
extensions/postgis_topology/Makefile
+++ /dev/null
-all:
- $(MAKE) -C postgis all
- $(MAKE) -C postgis_topology all
-
-clean distclean:
- $(MAKE) -C postgis $@
- $(MAKE) -C postgis_topology $@
-
-install:
- $(MAKE) -C postgis install
- $(MAKE) -C postgis_topology install
-
-uninstall:
- $(MAKE) -C postgis uninstall
- $(MAKE) -C postgis_topology uninstall
-
-check:
- @echo "Nothing to check"
-
--- /dev/null
+#############################################################################
+#
+# Master makefile used to build extensions
+#
+# Copyright (C) 2012 Sandro Santilli <strk@keybit.net>
+#
+# This is free software; you can redistribute and/or modify it under
+# the terms of the GNU General Public Licence. See the COPYING file.
+#
+#############################################################################
+
+SUBDIRS = postgis
+
+ifeq (@TOPOLOGY@,topology)
+ SUBDIRS += postgis_topology
+endif
+
+all clean distclean install uninstall:
+ for DIR in $(SUBDIRS); do \
+ echo "---- Making $@ in $${DIR}"; \
+ $(MAKE) -C "$${DIR}" $@; \
+ done
+
+
+check:
+ @echo "Nothing to check"
+