[Fencommits] fenfire-hs: make the Makefile run configure automatically when needed

Benja Fallenstein benja.fallenstein at gmail.com
Sun Mar 18 02:14:48 EET 2007


Sun Mar 18 02:14:10 EET 2007  Benja Fallenstein <benja.fallenstein at gmail.com>
  * make the Makefile run configure automatically when needed
diff -rN -u old-fenfire-hs/Makefile new-fenfire-hs/Makefile
--- old-fenfire-hs/Makefile	2007-03-18 02:14:48.000000000 +0200
+++ new-fenfire-hs/Makefile	2007-03-18 02:14:48.000000000 +0200
@@ -2,6 +2,9 @@
 GHC?=ghc
 GHCFLAGS=-fglasgow-exts -hide-package haskell98 -Wall -fno-warn-unused-imports -fno-warn-missing-signatures -fno-warn-orphans -fno-warn-deprecations
 
+PREFIX=~/inst
+CONFIGURE_OPTS=--user --prefix $(PREFIX)
+
 #GHCFLAGS+=-O -fexcess-precision -optc-ffast-math -optc-O3 
 #crash: -optc-march=pentium4 -optc-mfpmath=sse
 
@@ -17,7 +20,7 @@
 
 all: build
 
-build:
+build: .setup-config
 	runhaskell Setup.hs build
 
 install: 
@@ -50,8 +53,11 @@
 darcs.nt: darcs2rdf _darcs/inventory
 	darcs changes --xml | ./dist/build/darcs2rdf/darcs2rdf "http://antti-juhani.kaijanaho.fi/darcs/fenfire-hs/" > darcs.nt
 
+.setup-config:
+	runhaskell Setup.hs configure $(CONFIGURE_OPTS)
+
 configure:
-	runhaskell Setup.hs configure --user --prefix ~/inst
+	runhaskell Setup.hs configure $(CONFIGURE_OPTS)
 
 clean:
 	runhaskell Setup.hs clean




More information about the Fencommits mailing list