summaryrefslogtreecommitdiff
path: root/ghc/interpreter/lib/Makefile
blob: 5f274be884c938af7f84796dd70818f8293a6d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -------------------------------------------------------------------------- #
# $Id: Makefile,v 1.3 1999/11/24 17:25:14 sewardj Exp $ 
# -------------------------------------------------------------------------- #

TOP = ../..
include $(TOP)/mk/boilerplate.mk

LIBS = List.lhs Ix.lhs Complex.lhs Char.lhs Ratio.lhs Random.lhs \
       Array.lhs Maybe.lhs Monad.lhs Numeric.lhs Directory.lhs \
       System.lhs Locale.lhs CPUTime.lhs IO.lhs Pretty.lhs \
       GetOpt.lhs Bits.lhs Word.lhs Addr.lhs NumExts.lhs Int.lhs 

all :: $(LIBS)


HUGSCPP = ../../utils/hscpp/hscpp -D__HUGS__ -DUSE_REPORT_PRELUDE

%.lhs :: $(GHC_LIB_DIR)/std/%.lhs
	$(HUGSCPP) -I../../includes $< > $*.lhs

%.lhs :: $(GHC_LIB_DIR)/exts/%.lhs
	$(HUGSCPP) -I../../includes $< > $*.lhs

CLEAN_FILES += $(LIBS)

include $(TOP)/mk/target.mk