* Add a kludge to handle config.h for now until it's sorted properly (what a

pain).
* Fix generation of bitmaps/Makefile.am.

Originally committed to SVN as r1868.
This commit is contained in:
Amar Takhar 2008-03-03 08:09:32 +00:00
parent 14b319414f
commit c92232db0c

View file

@ -38,6 +38,9 @@ test $TEST_TYPE $FILE || {
exit 1
}
# XXX: This is a kludge until I sort out the config/includes situation.
touch ${srcdir}/aegisub/posix/config.h
# bmp -> xmp via the res.rc
if [ ! -f ${srcdir}/aegisub/bitmaps/Makefile.bitmaps ]; then
cat ${srcdir}/aegisub/res.rc | ${AWK_BIN} -f ${srcdir}/aegisub/bitmaps/genxpm.awk > ${srcdir}/aegisub/bitmaps/Makefile.bitmaps
@ -46,7 +49,7 @@ cd ${srcdir}/aegisub/bitmaps
make -f Makefile.bitmaps
cd ${srcdir}
awk '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST="); for (v in image) printf(" \\\n %s", image[v])}' \
awk '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST="); for (v in image) printf(" \\\n %s_xpm.xpm", image[v])}' \
${srcdir}/aegisub/res.rc \
> ${srcdir}/aegisub/bitmaps/Makefile.am