[project @ 2001-09-07 12:42:46 by simonpj]
[ghc-hetmet.git] / Makefile.config
1 # partain: probably not the right thing yet
2
3 all: configure
4
5 configure: configure.in aclocal.m4
6         rm -f configure.new
7         autoconf configure.in > configure.new \
8                 || ( rm -f configure.new; exit 1 )
9         rm -f configure
10         mv configure.new configure
11         chmod +x configure
12         chmod -w configure
13         if test -f config.status; then ./config.status --recheck; fi
14         rm -f configure.new
15
16 CONFIG_H_IN = ghc/includes/config.h.in
17
18 config.h.in: configure.in
19         rm -f $(CONFIG_H_IN)
20         autoheader configure.in > $(CONFIG_H_IN) \
21                 || ( rm -f $(CONFIG_H_IN); exit 1 )
22
23 # do something about autoheader
24 # do something about ghc-vs-nofib configure scripts