don't build enumtypes so often

we were only replacing enumtypes if it had changed, but this meant that
make usually thought it was out of date compared to the source files,
and rebuilt it, which needed perl

now we always replace it, so (hopefully) perl is no longer a
compile-time dependency
This commit is contained in:
John Cupitt 2017-08-30 14:37:48 +01:00
parent e2c83fe4bd
commit 653e99ea82
3 changed files with 5 additions and 12 deletions

View File

@ -1,5 +1,6 @@
29/8/17 started 8.5.9
- make --fail stop jpeg read on any libjpeg warning, thanks @mceachen
- don't build enumtypes so often, removing perl as a compile dependancy
2/8/17 started 8.5.8
- fix transparency detection in merge, thanks Haida

View File

@ -72,11 +72,7 @@ vips_scan_headers = \
${top_srcdir}/libvips/include/vips/morphology.h \
${top_srcdir}/libvips/include/vips/draw.h \
${top_srcdir}/libvips/include/vips/basic.h \
${top_srcdir}/libvips/include/vips/version.h \
${top_srcdir}/libvips/include/vips/object.h
enumtypes.h: $(vips_scan_headers) Makefile
glib-mkenums --template enumtemplate \
$(vips_scan_headers) > xgen-geth && \
( cmp -s xgen-geth enumtypes.h || cp xgen-geth enumtypes.h ) && \
rm -f xgen-geth
enumtypes.h: $(vips_scan_headers) Makefile.am
glib-mkenums --template enumtemplate $(vips_scan_headers) > enumtypes.h

View File

@ -70,11 +70,7 @@ vips_scan_headers = \
${top_srcdir}/libvips/include/vips/morphology.h \
${top_srcdir}/libvips/include/vips/draw.h \
${top_srcdir}/libvips/include/vips/basic.h \
${top_srcdir}/libvips/include/vips/version.h \
${top_srcdir}/libvips/include/vips/object.h
enumtypes.c: $(vips_scan_headers) Makefile
glib-mkenums --template enumtemplate \
$(vips_scan_headers) > xgen-getc && \
( cmp -s xgen-getc enumtypes.c || cp xgen-getc enumtypes.c ) && \
rm -f xgen-getc
enumtypes.c: $(vips_scan_headers) Makefile.am
glib-mkenums --template enumtemplate $(vips_scan_headers) > enumtypes.c