File: Makefile

package info (click to toggle)
haskell-http 20060707-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 220 kB
  • ctags: 7
  • sloc: haskell: 1,885; sh: 108; makefile: 82
file content (35 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
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
28
29
30
31
32
33
34
35
HADDOCK = haddock

TODAY = $(shell date +%Y%m%d)
DIST_NAME = http-$(TODAY)

HADDOCK_FILES = Network/HTTP.hs Network/Browser.hs 

.PHONY: all configure build install dist haddock clean

default all: configure build

configure:
	./Setup.lhs configure

build:
	./Setup.lhs build

install:
	./Setup.lhs install

dist:
	darcs dist --dist-name=$(DIST_NAME)

haddock: $(HADDOCK_FILES)
	mkdir -p haddock
	$(HADDOCK) -o haddock -h $^

clean:
	-./Setup.lhs clean
	-rm -rf haddock
	-rm -rf dist
	$(MAKE) -C test clean

setup: Setup.lhs
	ghc --make -package Cabal -o setup Setup.lhs