[Midnightbsd-cvs] src [11646] trunk/share/i18n/csmapper/Makefile: update makefile
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jul 8 14:00:12 EDT 2018
Revision: 11646
http://svnweb.midnightbsd.org/src/?rev=11646
Author: laffer1
Date: 2018-07-08 14:00:12 -0400 (Sun, 08 Jul 2018)
Log Message:
-----------
update makefile
Modified Paths:
--------------
trunk/share/i18n/csmapper/Makefile
Modified: trunk/share/i18n/csmapper/Makefile
===================================================================
--- trunk/share/i18n/csmapper/Makefile 2018-07-08 17:59:11 UTC (rev 11645)
+++ trunk/share/i18n/csmapper/Makefile 2018-07-08 18:00:12 UTC (rev 11646)
@@ -1,4 +1,5 @@
-# $FreeBSD$
+# $MidnightBSD$
+# $FreeBSD: stable/10/share/i18n/csmapper/Makefile 291792 2015-12-04 18:14:31Z bdrewery $
# $NetBSD: Makefile,v 1.13 2007/03/13 16:34:37 tnozaki Exp $
FILESDIR= ${CSMAPPERDIR}
@@ -5,12 +6,14 @@
SUBDIR= APPLE AST BIG5 CNS CP EBCDIC GB GEORGIAN ISO646 ISO-8859 JIS \
KAZAKH KOI KS MISC TCVN
+SUBDIR_PARALLEL=
mapper.dir: ${SUBDIR}
- touch ${.TARGET}
-.for i in ${SUBDIR}
- cat ${i}/mapper.dir.${i} >> ${.TARGET}
-.endfor
+ newfile=$$(for i in ${SUBDIR}; do \
+ cat $$i/mapper.dir.$$i; \
+ done); \
+ [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \
+ printf '%s\n' "$$newfile" >${.TARGET}
mapper.dir.db: mapper.dir
${MKCSMAPPER} -m -o ${.TARGET} ${.ALLSRC}
@@ -18,10 +21,11 @@
CLEANFILES+= mapper.dir mapper.dir.db
charset.pivot: ${SUBDIR}
- touch ${.TARGET}
-.for i in ${SUBDIR}
- cat ${i}/charset.pivot.${i} >> ${.TARGET}
-.endfor
+ newfile=$$(for i in ${SUBDIR}; do \
+ cat $$i/charset.pivot.$$i; \
+ done); \
+ [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \
+ printf '%s\n' "$$newfile" >${.TARGET}
charset.pivot.pvdb: charset.pivot
${MKCSMAPPER} -p -o ${.TARGET} ${.ALLSRC}
More information about the Midnightbsd-cvs
mailing list