diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-08-29 15:44:05 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-30 15:21:59 +0200 |
commit | 0f54e9761faf6a9c2bb3c7d1c415eea5d50985ae (patch) | |
tree | 80c2d55fa534817d69c0936c04920b0b5de83f23 /man/Makefile.am | |
parent | 60b01f9f0214b6a5c3e157a2772e4861649296af (diff) | |
download | coreutils-0f54e9761faf6a9c2bb3c7d1c415eea5d50985ae.tar.xz |
build: add an explanatory comment
* man/Makefile.am (EXTRA_DIST): Describe portability issues of the
idiom we now use. Reformat the definition a little while at it.
Diffstat (limited to 'man/Makefile.am')
-rw-r--r-- | man/Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index 8e9df082b..44eb3105f 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -19,10 +19,19 @@ dist_man1_MANS = $(MAN) man_aux = $(dist_man1_MANS:.1=.x) -EXTRA_DIST = $(man_aux) $(NO_INSTALL_PROGS_DEFAULT:%=%.x) help2man \ - $(NO_INSTALL_PROGS_DEFAULT:%=%.1) +EXTRA_DIST = $(man_aux) help2man MAINTAINERCLEANFILES = $(dist_man1_MANS) +# The "$(VAR:%=%.x)" idiom is not portable according to POSIX, but in +# practice it works with several make implementation (GNU, BSD, CCS make +# from Solaris 10, Sun distributed make). In addition, since only +# maintainers are expected to build release tarballs (and they should +# use GNU make when doing so), it's not big deal if this won't work with +# some dumber make implementation. +EXTRA_DIST += \ + $(NO_INSTALL_PROGS_DEFAULT:%=%.x) \ + $(NO_INSTALL_PROGS_DEFAULT:%=%.1) + # Depend on ../.version to get version number changes. common_dep = ../.version |