]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(.x.1): Use $(LN_S) instead of 'ln -s',
authorJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 23:00:25 +0000 (23:00 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 23:00:25 +0000 (23:00 +0000)
because the DJGPP 2.03 port of 'ln -s' doesn't work.
Include $(EXEEXT) in program names.
Since $(LN_S) may degenerate to `cp -p', be careful
to invoke it from the destination directory.
Mostly from Richard Dawe.

man/Makefile.am

index 9e47b4cde0cb55cf0e0894651cb618aecdb22b7a..194c5a983492c95034f68a3371c60f11977318e4 100644 (file)
@@ -124,10 +124,10 @@ mapped_name = `echo $*|sed 's/install/ginstall/'`
 .x.1:
        @echo "Updating man page $@";           \
        mkdir $t;                               \
-       ln -s ../../src/$(mapped_name) $t/$*;   \
+       (cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \
        $(HELP2MAN)                             \
            --include=$(srcdir)/$*.x            \
-           --output=$@ $t/$*;                  \
+           --output=$@ $t/$*$(EXEEXT);         \
        rm -rf $t
 
 check-local: check-x-vs-1