summaryrefslogtreecommitdiff
path: root/editors/tamago/files/patch-Makefile.in
blob: 666ae26c41a5b053990aad7aee72d29d0835743c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- Makefile.in.orig	2016-05-15 21:22:18 UTC
+++ Makefile.in
@@ -423,8 +423,11 @@ distclean-hdr:
 	  $(EMACS) --batch \
 	    $(AM_ELCFLAGS) $(ELCFLAGS) \
 	    $$am__subdir_includes -L $(builddir) -L $(srcdir) \
-	    --eval "(defun byte-compile-dest-file (f) \"$@\")" \
+	    --eval "(defun byte-compile-dest-file (f) \"/tmp/$@\")" \
 	    --eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"; \
+	    if [ -f "/tmp/$@" ]; then \
+		cp /tmp/$@ $@ && rm -f /tmp/$@; \
+	    fi; \
 	else :; fi
 
 install-dist_lispLISP: $(dist_lisp_LISP) $(ELCFILES)