Skip to content

Commit

Permalink
Add maintainer-check target
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
petere committed Mar 28, 2011
1 parent aa6fdd1 commit 6c0dfc0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@

Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
2 changes: 1 addition & 1 deletion doc/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
2 changes: 1 addition & 1 deletion doc/src/sgml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<


Expand Down
4 changes: 2 additions & 2 deletions src/Makefile.global.in
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/include/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6c0dfc0

Please sign in to comment.