From: Peter Eisentraut Date: Mon, 28 Mar 2011 19:53:55 +0000 (+0300) Subject: Add maintainer-check target X-Git-Tag: REL9_1_BETA1~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c0dfc035670240cddf0092a4aa22e5815b6583d;p=postgresql 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. --- diff --git a/GNUmakefile.in b/GNUmakefile.in index b9c5f317b6..f3c5fe587e 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 aee3cc0965..2e5e09ef88 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 30d883815a..b0d4f1f506 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 add2c282c6..3041a53073 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 2eff4d4067..69512ac643 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 0d5f04932b..1bfb4a7166 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