and in practise link to .. is better than somewhere else

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-25 11:35:43 +01:00
parent bbe4f940e3
commit 6e85d65b72

View file

@ -84,8 +84,8 @@ $(MAN1DSTDIR) $(MAN7DSTDIR) $(MANHTMLDIR):
# Link source files
manlink: $(MAN1DSTDIR) $(MAN7DSTDIR)
for mansrc in $(MAN1SRC); do ln -sf $$mansrc $(MAN1DSTDIR); done
for mansrc in $(MAN7SRC); do ln -sf $$mansrc $(MAN7DSTDIR); done
for mansrc in $(notdir $(MAN1SRC)); do ln -sf ../$$mansrc $(MAN1DSTDIR); done
for mansrc in $(notdir $(MAN7SRC)); do ln -sf ../$$mansrc $(MAN7DSTDIR); done
for mansrc in $(MAN7TYPESRC); do \
dst="$$(echo $$mansrc | sed -e 's;conf/;cdist-;' -e 's;/;;' -e 's;/man;;' -e 's;^;doc/man/man7/;')"; \
ln -sf $$mansrc $$dst; done