aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorGlenn Morris2012-04-10 00:18:02 -0700
committerGlenn Morris2012-04-10 00:18:02 -0700
commita9f72fc14ec65ae6f7cbd8eaea1f81c896162ecc (patch)
tree5c9a2f58fe1ee2c14f0bd6d911a1a88052ae1d83 /admin
parent78658677a294be3c6cc71817ae8dd1551bd92ce3 (diff)
downloademacs-a9f72fc14ec65ae6f7cbd8eaea1f81c896162ecc.tar.gz
emacs-a9f72fc14ec65ae6f7cbd8eaea1f81c896162ecc.zip
Generate admin/unidata/Makefile with configure
* configure.in: Conditionally generate admin/unidata/Makefile. * admin/unidata/Makefile.in: Add FSF copyright. Make it use autoconf features, and work for out-of-tree builds.
Diffstat (limited to 'admin')
-rw-r--r--admin/ChangeLog5
-rw-r--r--admin/unidata/Makefile.in42
2 files changed, 34 insertions, 13 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index ac2323c77d0..1cc52bc5fb5 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,8 @@
12012-04-10 Glenn Morris <rgm@gnu.org>
2
3 * unidata/Makefile.in: Add FSF copyright.
4 Make it use autoconf features, and work for out-of-tree builds.
5
12012-04-07 Eli Zaretskii <eliz@gnu.org> 62012-04-07 Eli Zaretskii <eliz@gnu.org>
2 7
3 * unidata/README: 8 * unidata/README:
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in
index c890dad8903..ecbd0490246 100644
--- a/admin/unidata/Makefile.in
+++ b/admin/unidata/Makefile.in
@@ -1,4 +1,7 @@
1# Makefile -- Makefile to generate character property tables. 1# Makefile -- Makefile to generate character property tables.
2
3# Copyright (C) 2012 Free Software Foundation, Inc.
4
2# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 5# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
3# National Institute of Advanced Industrial Science and Technology (AIST) 6# National Institute of Advanced Industrial Science and Technology (AIST)
4# Registration Number H13PRO009 7# Registration Number H13PRO009
@@ -18,25 +21,33 @@
18# You should have received a copy of the GNU General Public License 21# You should have received a copy of the GNU General Public License
19# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 22# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20 23
24SHELL = /bin/sh
25
26srcdir = @srcdir@
27abs_builddir = @abs_builddir@
28top_srcdir = @top_srcdir@
29abs_top_builddir = @abs_top_builddir@
21 30
22EMACS = ../../src/emacs 31EMACS = ${abs_top_builddir}/src/emacs
23DSTDIR = ../../lisp/international 32DSTDIR = ${top_srcdir}/lisp/international
24RUNEMACS = ${EMACS} -Q -batch 33emacs = ${EMACS} -batch --no-site-file --no-site-lisp
25 34
26all: ${DSTDIR}/charprop.el 35all: ${DSTDIR}/charprop.el
27 36
28.el.elc: 37.el.elc:
29 ${RUNEMACS} -batch -f batch-byte-compile $< 38 ${emacs} -f batch-byte-compile $<
30 39
31unidata.txt: UnicodeData.txt 40unidata.txt: ${srcdir}/UnicodeData.txt
32 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < UnicodeData.txt > $@ 41 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < ${srcdir}/UnicodeData.txt > $@
33 42
34${DSTDIR}/charprop.el: unidata-gen.elc unidata.txt 43${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
35 ELC=`/bin/pwd`/unidata-gen.elc; \ 44 cd ${DSTDIR} && ${emacs} -l ${srcdir}/unidata-gen \
36 DATADIR=`/bin/pwd`; \ 45 -f unidata-gen-files ${srcdir} ${abs_builddir}/unidata.txt
37 DATA=unidata.txt; \ 46
38 cd ${DSTDIR}; \ 47## Like the above, but generate in PWD rather than lisp/international.
39 ${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATADIR} $${DATA} 48charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
49 ${emacs} -l ${srcdir}/unidata-gen \
50 -f unidata-gen-files ${srcdir} unidata.txt
40 51
41install: charprop.el 52install: charprop.el
42 cp charprop.el ${DSTDIR} 53 cp charprop.el ${DSTDIR}
@@ -46,4 +57,9 @@ clean:
46 if test -f charprop.el; then \ 57 if test -f charprop.el; then \
47 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \ 58 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
48 fi 59 fi
49 rm -f charprop.el unidata-gen.elc unidata.txt 60 rm -f charprop.el ${srcdir}/unidata-gen.elc unidata.txt
61
62distclean: clean
63 -rm -f ./Makefile
64
65maintainer-clean: distclean