JP Abgrall | 511eca3 | 2014-02-12 13:46:45 -0800 | [diff] [blame] | 1 | # |
| 2 | # Auto-regenerate configure script or Makefile when things change. |
| 3 | # From autoconf.info . Works best with GNU Make. |
| 4 | # |
| 5 | ${srcdir}/configure: configure.in aclocal.m4 |
| 6 | cd ${srcdir} && autoconf |
| 7 | |
| 8 | # autoheader might not change config.h.in, so touch a stamp file. |
| 9 | ${srcdir}/config.h.in: ${srcdir}/stamp-h.in |
| 10 | ${srcdir}/stamp-h.in: configure.in aclocal.m4 |
| 11 | cd ${srcdir} && autoheader |
| 12 | echo timestamp > ${srcdir}/stamp-h.in |
| 13 | |
| 14 | config.h: stamp-h |
| 15 | stamp-h: ${srcdir}/config.h.in config.status |
| 16 | ./config.status |
| 17 | |
| 18 | Makefile: Makefile.in config.status |
| 19 | ./config.status |
| 20 | |
| 21 | config.status: ${srcdir}/configure |
| 22 | ./config.status --recheck |