summaryrefslogtreecommitdiff
path: root/leim/Makefile.in
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-03-29 14:26:20 +0000
committerGerd Moellmann <gerd@gnu.org>2001-03-29 14:26:20 +0000
commit6f19e398194124bcac02911dcd71b1054f9560c4 (patch)
treed23cc1eb75475dad3f318e801b76b0c37d2ec6c4 /leim/Makefile.in
parented31fabfe9123cdd84acd4429944182668f8d3e2 (diff)
downloademacs-6f19e398194124bcac02911dcd71b1054f9560c4.tar.gz
(.NOTPARALLEL, .NO_PARALLEL): New special targets.
(${TIT}): If the target file already exist, don't remake it.
Diffstat (limited to 'leim/Makefile.in')
-rw-r--r--leim/Makefile.in20
1 files changed, 16 insertions, 4 deletions
diff --git a/leim/Makefile.in b/leim/Makefile.in
index 4d319851261..66e50082fee 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -150,13 +150,25 @@ ${SUBDIRS}:
mkdir $@
touch stamp-subdir
+# The rule which generates ${TIT} files creates them all in one go.
+# So we need to prevent parallel execution for that target, otherwise
+# Emacs complains about files being locked. .NOTPARALLEL is for GNU
+# Make, .NO_PARALLEL is for other Make's.
+.NOTPARALLEL: ${TIT}
+
+.NO_PARALLEL: ${TIT}
+
# Rule to generate quail/*.el from CXTERM-DIC/*.tit.
+# The "if [ -f $@ ]; then true; " part prevents parallel Make's
+# which don't honor .NOTPARALLEL, such as SGI's Make.
${TIT}:
if [ -d quail ]; then true; else make quail; fi
- ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
- --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC
- ${RUN-EMACS} -l ${buildlisppath}/international/quail \
- -f batch-byte-compile ${TIT:.elc=.el}
+ if [ -f $@ ]; then true; else \
+ ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
+ --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC; fi
+ if [ -f $@ ]; then true; else \
+ ${RUN-EMACS} -l ${buildlisppath}/international/quail \
+ -f batch-byte-compile ${TIT:.elc=.el}; fi
leim-list.el: ${SUBDIRS} ${WORLD}
if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \