diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-07-22 00:07:55 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-07-22 00:07:55 +0000 |
commit | 692fead0ba3f053cf22eaa169e29b449303842d1 (patch) | |
tree | 35ff9a11827acf5e709791e787cbbcfa136c8b6a /leim | |
parent | 53966a147033216d398f4182c5dade18b82a166a (diff) | |
download | emacs-692fead0ba3f053cf22eaa169e29b449303842d1.tar.gz |
Use @LN_S@, not ln -s, in case no symlink support.
(clean): Absence of ./Makefile.in is criterion for deleting skkdic.elc.
Diffstat (limited to 'leim')
-rw-r--r-- | leim/Makefile.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/leim/Makefile.in b/leim/Makefile.in index e451af1980b..f1ead5397f5 100644 --- a/leim/Makefile.in +++ b/leim/Makefile.in @@ -133,13 +133,13 @@ ${TIT-GB} ${TIT-BIG5}: ${EMACS} # distributed as is. So, we just make symbolic links to them if # ${srcdir} is different form the current directory. %.el: - ln -s ${srcdir}/$@ $@ + @LN_S@ ${srcdir}/$@ $@ stamp-bytecomp: ${WORLD} ${EMACS} ${RUN-EMACS} -batch --eval '(byte-recompile-directory "quail" 0)' if test ! -f skk/skkdic.elc; then \ if test -f ${srcdir}/skk/skkdic.elc; then \ - ln -s ${srcdir}/skk/skkdic.elc skk; \ + @LN_S@ ${srcdir}/skk/skkdic.elc skk; \ else \ ${RUN-EMACS} -batch -l skkdic-cnv \ --eval '(byte-recompile-directory "skk" 0)'; \ @@ -267,9 +267,15 @@ install-misc: all ${MISC} mostlyclean: rm -f quail/*.elc stamp-bytecomp +# This used to use test -L, but that is not portable. +# If Makefile.in doesn't exist in the build directory +# then it isn't the source directory, so we should delete the file. clean: rm -rf ${TIT-GB} ${TIT-BIG5} quail/*.elc stamp-bytecomp leim-list.el - test -L skk/skkdic.elc || rm skk/skkdic.elc +# If this is not a dot-srcdir build, then remove the link made to skkdic.elc. + if test ! -f Makefile.in; then \ + rm -f skk/skkdic.elc; \ + else; true; fi distclean maintainer-clean: clean if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi |