sedleim.inp 1.79 KB
Newer Older
Eli Zaretskii's avatar
Eli Zaretskii committed
1 2 3
# -sedleim.inp-----------------------------------------------------------
# Configuration script for leim/Makefile under DJGPP v2.x
# ----------------------------------------------------------------------
4
#
5
# Copyright (C) 1999-2012  Free Software Foundation, Inc.
6 7 8 9 10 11 12 13 14 15 16 17
#
# This file is part of GNU Emacs.
#
# This file is free software; as a special exception, the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# ----------------------------------------------------------------------
Eli Zaretskii's avatar
Eli Zaretskii committed
18
/^SHELL *=/c\
19 20
SHELL=/xyzzy/command\
MAKESHELL=/xyzzy/command
Eli Zaretskii's avatar
Eli Zaretskii committed
21 22 23 24

/^version=/d
/^prefix=/d
/^datadir=/s|@datadir@|../..|
25
/^srcdir=/s|srcdir=@srcdir@|srcdir := $(subst \\,/,$(shell cd))|
Eli Zaretskii's avatar
Eli Zaretskii committed
26 27 28 29

/^INSTALLDIR=/c\
INSTALLDIR=.

30 31
/touch stamp-subdir/s|touch|djecho "stamp-subdir" >|
s|\([ 	]\)echo|\1djecho|g
32
/^	@true *$/d
33

34
/RUN_EMACS *=/,/^$/c\
35
export EMACSLOADPATH=${buildlisppath}\
36
RUN_EMACS = ${EMACS} -batch --no-site-file
37

Eli Zaretskii's avatar
Eli Zaretskii committed
38 39 40
/^	cd ../c\
	${MAKE} -C ../src ${MFLAGS} emacs

41 42 43
/if \[ -f $@ \]\; then true/d
/fi$/s/; fi$//

Eli Zaretskii's avatar
Eli Zaretskii committed
44 45 46 47 48 49 50
/^leim-list.el:/,/^$/ {
	/^	if/d
	/^	else/,/^	fi/d
	s|	 *|	|
	/^	--eval/,/; \\$/s|\; \\||
}

51 52 53 54 55 56 57 58 59
/^setwins=/,/^$/d
/^\.PHONY: compile-targets/d
/^compile-targets:/d
/^compile-main:/,/^$/c\
compile-main: ${TIT_MISC}\
	$(MAKE) $(MFLAGS) $(foreach f,$(wildcard ja-dic/*.el),$(basename $f).elc)\
	$(MAKE) $(MFLAGS) $(foreach f,$(wildcard quail/*.el),$(basename $f).elc)\


Eli Zaretskii's avatar
Eli Zaretskii committed
60 61 62
/^install:/,/^$/c\
install: all\

63 64 65 66 67
/^bootstrap-clean:/,/^$/c\
bootstrap-clean: clean\
	rm -f ja-dic/*.elc quail/*.elc\


Eli Zaretskii's avatar
Eli Zaretskii committed
68
/^	if test -f/d
69 70 71
/^distclean:/,/^$/ {
	s|\(rm -f Makefile\)|\1 stamp-subdir|
}
Miles Bader's avatar
Miles Bader committed
72