diff options
author | phantom <phantom@FreeBSD.org> | 2002-03-04 12:27:00 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2002-03-04 12:27:00 +0000 |
commit | 5adedc849a677864a23418dc6cf72512ac66ebbf (patch) | |
tree | d2c3a9195f921ce711345543e40cc757ae260fab /share/mk/bsd.nls.mk | |
parent | 63f07ef33b4cfe05573e2764507e9eb13ff80fa1 (diff) | |
download | FreeBSD-src-5adedc849a677864a23418dc6cf72512ac66ebbf.zip FreeBSD-src-5adedc849a677864a23418dc6cf72512ac66ebbf.tar.gz |
. Add support for making NLS links
. Target definitions tweaks
Diffstat (limited to 'share/mk/bsd.nls.mk')
-rw-r--r-- | share/mk/bsd.nls.mk | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/share/mk/bsd.nls.mk b/share/mk/bsd.nls.mk index ceb822e..ab76f2d 100644 --- a/share/mk/bsd.nls.mk +++ b/share/mk/bsd.nls.mk @@ -37,6 +37,7 @@ NLSMODE?= ${NOBINMODE} NLSOWN?= ${SHAREOWN} NLS?= +NLSLINKS= .MAIN: all @@ -62,6 +63,10 @@ ${file}: cat ${NLSSRCDIR_${file}}/${NLSSRCFILES_${file}} > ${.TARGET} CLEANFILES+= ${file} .endif + +.if defined(NLSLINKS_${file:C/.msg//g}) && !empty(NLSLINKS_${file:C/.msg//g}) +NLSLINKS+= ${file:C/.msg//g} +.endif .endfor # @@ -85,6 +90,16 @@ nlsinstall:: ${_F} .PRECIOUS: ${_F} # keep if install fails .endfor +links-nls: +.if defined(NLSLINKS) && !empty(NLSLINKS) +.for src in ${NLSLINKS} +.for dst in ${NLSLINKS_${src}} + ln -fs ../${src}/${NLSNAME}.cat \ + ${DESTDIR}${NLSDIR}/${dst}/${NLSNAME}.cat +.endfor +.endfor +.endif + # .if !defined(NO_NLS) && !empty(NLS) @@ -93,8 +108,14 @@ all-nls: ${NLSALL} all-nls: .endif +.if !defined(NO_NLS) && !empty(NLS) +realinstall: beforeinstall nlsinstall links-nls +.else +realinstall: beforeinstall +.endif + all: all-nls _SUBDIR -install: beforeinstall nlsinstall afterinstall +install: realinstall afterinstall .if !target(distribute) distribute: |