1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

While running cpp on junk.c, include

-DHAVE_UNIDATA in CPPFLAGS if admin/unidata/UnicodeData.txt
exists.
This commit is contained in:
Kenichi Handa 2005-05-11 12:16:42 +00:00
parent 4c452d71b6
commit a9b84515ed

View File

@ -3179,6 +3179,9 @@ echo creating src/Makefile
sed -e '1,/start of cpp stuff/d'\
-e 's,/\*\*/#\(.*\)$,/* \1 */,' \
< Makefile.c > junk.c
if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
fi
$CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
cat junk1.c junk2.c > Makefile.new