Commit 6c0dfc03 authored by Peter Eisentraut's avatar Peter Eisentraut

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.
parent aa6fdd18
...@@ -65,6 +65,8 @@ $(call recurse,check-world,src/test src/pl src/interfaces/ecpg,check) ...@@ -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,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 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
./config.status $@ ./config.status $@
......
...@@ -12,5 +12,5 @@ subdir = doc ...@@ -12,5 +12,5 @@ subdir = doc
top_builddir = .. top_builddir = ..
include $(top_builddir)/src/Makefile.global 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 $@ $(MAKE) -C src $@
...@@ -4,5 +4,5 @@ subdir = doc/src ...@@ -4,5 +4,5 @@ subdir = doc/src
top_builddir = ../.. top_builddir = ../..
include $(top_builddir)/src/Makefile.global 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 $@ $(MAKE) -C sgml $@
...@@ -279,7 +279,7 @@ MAKEINFO = makeinfo ...@@ -279,7 +279,7 @@ MAKEINFO = makeinfo
## ##
# Quick syntax check without style processing # Quick syntax check without style processing
check: postgres.sgml $(ALMOSTALLSGML) check-tabs check maintainer-check: postgres.sgml $(ALMOSTALLSGML) check-tabs
$(NSGMLS) $(SPFLAGS) $(SGMLINCLUDE) -s $< $(NSGMLS) $(SPFLAGS) $(SGMLINCLUDE) -s $<
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
# #
# Meta configuration # 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 # make `all' the default target
all: all:
......
...@@ -67,3 +67,6 @@ clean: ...@@ -67,3 +67,6 @@ clean:
distclean maintainer-clean: clean distclean maintainer-clean: clean
rm -f pg_config.h dynloader.h pg_config_os.h stamp-h rm -f pg_config.h dynloader.h pg_config_os.h stamp-h
maintainer-check:
cd catalog && ./duplicate_oids
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment