[project @ 2003-08-27 15:18:29 by panne]
[ghc-hetmet.git] / Makefile.config
1 # partain: probably not the right thing yet
2
3 all: configure
4
5 configure: configure.ac aclocal.m4
6         rm -f configure.new
7         autoconf configure.ac > 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.ac
19         rm -f $(CONFIG_H_IN)
20         autoheader configure.ac > $(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