[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / Makefile.config
diff --git a/Makefile.config b/Makefile.config
new file mode 100644 (file)
index 0000000..90c5ab4
--- /dev/null
@@ -0,0 +1,23 @@
+# partain: probably not the right thing yet
+
+all: configure
+
+configure: configure.in
+       rm -f configure.new
+       autoconf configure.in > configure.new \
+               || ( rm -f configure.new; exit 1 )
+       rm -f configure
+       mv configure.new configure
+       chmod +x configure
+       chmod -w configure
+       rm -f configure.new
+
+CONFIG_H_IN = ghc/includes/config.h.in
+
+config.h.in: configure.in
+       rm -f $(CONFIG_H_IN)
+       autoheader configure.in > $(CONFIG_H_IN) \
+               || ( rm -f $(CONFIG_H_IN); exit 1 )
+
+# do something about autoheader
+# do something about ghc-vs-nofib configure scripts