Commit | Line | Data |
---|---|---|
cebc7051 EZ |
1 | # -sedleim.inp----------------------------------------------------------- |
2 | # Configuration script for leim/Makefile under DJGPP v2.x | |
3 | # ---------------------------------------------------------------------- | |
d7fcecc1 | 4 | # |
acaf905b | 5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. |
d7fcecc1 EZ |
6 | # |
7 | # This file is part of GNU Emacs. | |
8 | # | |
9 | # This file is free software; as a special exception, the author gives | |
10 | # unlimited permission to copy and/or distribute it, with or without | |
11 | # modifications, as long as this notice is preserved. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
17 | # ---------------------------------------------------------------------- | |
cebc7051 | 18 | /^SHELL *=/c\ |
85688389 EZ |
19 | SHELL=/xyzzy/command\ |
20 | MAKESHELL=/xyzzy/command | |
cebc7051 EZ |
21 | |
22 | /^version=/d | |
23 | /^prefix=/d | |
24 | /^datadir=/s|@datadir@|../..| | |
642bbd6f | 25 | /^srcdir=/s|srcdir=@srcdir@|srcdir := $(subst \\,/,$(shell cd))| |
cebc7051 EZ |
26 | |
27 | /^INSTALLDIR=/c\ | |
28 | INSTALLDIR=. | |
29 | ||
ad89ba2b EZ |
30 | /touch stamp-subdir/s|touch|djecho "stamp-subdir" >| |
31 | s|\([ ]\)echo|\1djecho|g | |
1daf07a2 | 32 | /^ @true *$/d |
ad89ba2b | 33 | |
f601db19 | 34 | /RUN_EMACS *=/,/^$/c\ |
97ea7b55 | 35 | export EMACSLOADPATH=${buildlisppath}\ |
b42287d2 | 36 | RUN_EMACS = ${EMACS} -batch --no-site-file |
97ea7b55 | 37 | |
cebc7051 EZ |
38 | /^ cd ../c\ |
39 | ${MAKE} -C ../src ${MFLAGS} emacs | |
40 | ||
e5551cec EZ |
41 | /if \[ -f $@ \]\; then true/d |
42 | /fi$/s/; fi$// | |
43 | ||
cebc7051 EZ |
44 | /^leim-list.el:/,/^$/ { |
45 | /^ if/d | |
46 | /^ else/,/^ fi/d | |
47 | s| *| | | |
48 | /^ --eval/,/; \\$/s|\; \\|| | |
49 | } | |
50 | ||
b42287d2 EZ |
51 | /^setwins=/,/^$/d |
52 | /^\.PHONY: compile-targets/d | |
53 | /^compile-targets:/d | |
54 | /^compile-main:/,/^$/c\ | |
55 | compile-main: ${TIT_MISC}\ | |
56 | $(MAKE) $(MFLAGS) $(foreach f,$(wildcard ja-dic/*.el),$(basename $f).elc)\ | |
57 | $(MAKE) $(MFLAGS) $(foreach f,$(wildcard quail/*.el),$(basename $f).elc)\ | |
58 | ||
59 | ||
cebc7051 EZ |
60 | /^install:/,/^$/c\ |
61 | install: all\ | |
62 | ||
b42287d2 EZ |
63 | /^bootstrap-clean:/,/^$/c\ |
64 | bootstrap-clean: clean\ | |
65 | rm -f ja-dic/*.elc quail/*.elc\ | |
66 | ||
67 | ||
cebc7051 | 68 | /^ if test -f/d |
ad89ba2b EZ |
69 | /^distclean:/,/^$/ { |
70 | s|\(rm -f Makefile\)|\1 stamp-subdir| | |
71 | } | |
ab5796a9 | 72 |