diff options
author | Jim Meyering <jim@meyering.net> | 2003-06-04 11:58:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-06-04 11:58:59 +0000 |
commit | 0ab9c4a0fac37614328daaf788625943f1f44afa (patch) | |
tree | 24a63d6e01cf7d04b4cebeaef924ff7e5e11b9f6 /man | |
parent | dba74830958802a019b7f2090bb8bcb5d3f2e822 (diff) | |
download | coreutils-0ab9c4a0fac37614328daaf788625943f1f44afa.tar.xz |
(check-programs-vs-1): New phony target.
(check-local): Depend on it.
Diffstat (limited to 'man')
-rw-r--r-- | man/Makefile.am | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index 0b0456da7..6f1a700f2 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -130,7 +130,7 @@ mapped_name = `echo $*|sed 's/install/ginstall/'` --output=$@ $t/$*$(EXEEXT); \ rm -rf $t -check-local: check-x-vs-1 +check-local: check-x-vs-1 check-programs-vs-1 # Ensure that for each .x file in this directory, there is a # corresponding .1 file in the definition of $(dist_man_MANS) above. @@ -142,3 +142,17 @@ check-x-vs-1: echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | sort -u \ | diff - $$t || { rm $$t; exit 1; }; \ rm $$t + +programs = \ + echo 'spy:;@echo $$(all_programs)' \ + | MAKEFLAGS= $(MAKE) -s -C $(srcdir)/../src -f Makefile -f - spy \ + | fmt -1 | sort -u + +.PHONY: check-programs-vs-1 +check-programs-vs-1: + for p in `$(programs)`; do \ + test $$p = ginstall && p=install || : ; \ + test -f $(srcdir)/$$p.1 \ + || { echo missing $$p.1 1>&2; missing=1; }; \ + done; \ + test "$$missing" = 1 && exit 1 || : |