5d61c67118
to both directories, and make it relative, rather than absolute. This fixes the case where you might install the docs under one directory /foo/bar/..., and then want to migrate them elsewhere (to /usr/share/). With the old scheme, the symlink would start /foo/bar/..., and would therefore be broken. A good example of this happening is "make release" :-)
22 lines
463 B
Makefile
22 lines
463 B
Makefile
# $Id: Makefile,v 1.4 1999-08-26 19:42:10 nik Exp $
|
|
|
|
SUBDIR = articles
|
|
SUBDIR+= books
|
|
|
|
COMPAT_SYMLINK = en
|
|
|
|
#
|
|
# Put the compatability symlink in place.
|
|
#
|
|
afterinstall:
|
|
.if !defined(IGNORE_COMPAT_SYMLINK)
|
|
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
|
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
|
(cd ${DOCDIR} && ln -s en_US.ISO_8859-1 ${COMPAT_SYMLINK}); \
|
|
fi
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|
|
|
|
DOC_PREFIX?= ..
|
|
.include "../share/mk/docproj.docbook.mk"
|