Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/tools/makekeys Don't recreate link if clea...



details:   https://anonhg.NetBSD.org/src/rev/9aa2fb970db5
branches:  trunk
changeset: 339079:9aa2fb970db5
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 26 02:43:26 2015 +0000

description:
Don't recreate link if clean or cleandir

diffstat:

 external/mit/xorg/tools/makekeys/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a90b18e09b86 -r 9aa2fb970db5 external/mit/xorg/tools/makekeys/Makefile
--- a/external/mit/xorg/tools/makekeys/Makefile Fri Jun 26 01:33:08 2015 +0000
+++ b/external/mit/xorg/tools/makekeys/Makefile Fri Jun 26 02:43:26 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2015/06/25 01:38:09 matt Exp $
+#      $NetBSD: Makefile,v 1.4 2015/06/26 02:43:26 matt Exp $
 
 NOMAN= 1
 
@@ -14,14 +14,16 @@
 XPINCS=                X.h Xarch.h Xos.h Xosdefs.h keysymdef.h
 X11INCS=       Xlib.h Xresource.h
 CLEANFILES+=   ${XPINCS} ${X11INCS} Xfuncproto.h
+.if !make(clean) && !make(cleandir)
 .BEGIN:
-       @rm -f X11 && ln -s . X11
+       @rm -f ${.OBJDIR}/X11 && ln -s . X11
 .for i in ${XPINCS}
        @rm -f $i && ln -s ${X11SRCDIR.xproto}/$i .
 .endfor
 .for i in ${X11INCS}
        @rm -f $i && ln -s ${X11SRCDIR.X11}/include/X11/$i .
 .endfor
+.endif
 
 Xfuncproto.h: ${X11SRCDIR.xproto}/Xfuncproto.h.in
        ${TOOL_SED} -e 's/#undef NARROWPROTO/#define NARROWPROTO/'  \



Home | Main Index | Thread Index | Old Index