summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2011-03-28 19:53:55 +0000
committerPeter Eisentraut2011-03-28 19:56:52 +0000
commit6c0dfc035670240cddf0092a4aa22e5815b6583d (patch)
tree2b9a0f717fd47293a3a64c6f8c26e1159582a7d1
parentaa6fdd186cf2c29e04d3cc8ca19783fb904a5a33 (diff)
Add maintainer-check target
This can do various source code checks that are not appropriate for either the build or the regression tests. Currently: duplicate_oids, SGML syntax and tabs check, NLS syntax check.
-rw-r--r--GNUmakefile.in2
-rw-r--r--doc/Makefile2
-rw-r--r--doc/src/Makefile2
-rw-r--r--doc/src/sgml/Makefile2
-rw-r--r--src/Makefile.global.in4
-rw-r--r--src/include/Makefile3
6 files changed, 10 insertions, 5 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in
index b9c5f317b64..f3c5fe587e9 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -65,6 +65,8 @@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg,check)
$(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib,installcheck)
+$(call recurse,maintainer-check,doc src config contrib)
+
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
./config.status $@
diff --git a/doc/Makefile b/doc/Makefile
index aee3cc09654..2e5e09ef88a 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -12,5 +12,5 @@ subdir = doc
top_builddir = ..
include $(top_builddir)/src/Makefile.global
-all distprep html man install installdirs uninstall clean distclean maintainer-clean:
+all distprep html man install installdirs uninstall clean distclean maintainer-clean maintainer-check:
$(MAKE) -C src $@
diff --git a/doc/src/Makefile b/doc/src/Makefile
index 30d883815aa..b0d4f1f5063 100644
--- a/doc/src/Makefile
+++ b/doc/src/Makefile
@@ -4,5 +4,5 @@ subdir = doc/src
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
-all distprep html man install installdirs uninstall clean distclean maintainer-clean:
+all distprep html man install installdirs uninstall clean distclean maintainer-clean maintainer-check:
$(MAKE) -C sgml $@
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index add2c282c6b..3041a530739 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -279,7 +279,7 @@ MAKEINFO = makeinfo
##
# Quick syntax check without style processing
-check: postgres.sgml $(ALMOSTALLSGML) check-tabs
+check maintainer-check: postgres.sgml $(ALMOSTALLSGML) check-tabs
$(NSGMLS) $(SPFLAGS) $(SGMLINCLUDE) -s $<
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 2eff4d4067f..69512ac6437 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -18,9 +18,9 @@
#
# Meta configuration
-standard_targets = all install installdirs uninstall distprep clean distclean maintainer-clean coverage check installcheck
+standard_targets = all install installdirs uninstall distprep clean distclean maintainer-clean coverage check installcheck maintainer-check
-.PHONY: $(standard_targets) install-strip maintainer-check html man installcheck-parallel
+.PHONY: $(standard_targets) install-strip html man installcheck-parallel
# make `all' the default target
all:
diff --git a/src/include/Makefile b/src/include/Makefile
index 0d5f04932b5..1bfb4a7166d 100644
--- a/src/include/Makefile
+++ b/src/include/Makefile
@@ -67,3 +67,6 @@ clean:
distclean maintainer-clean: clean
rm -f pg_config.h dynloader.h pg_config_os.h stamp-h
+
+maintainer-check:
+ cd catalog && ./duplicate_oids