Source

haskell-local-address / GNUmakefile

Full commit

sources = Network/Socket/LocalAddress.hs

objs = $(sources:.hs=.o)
interfaces = $(sources:.hs=.hi)

%.o: %.hs
	ghc -Wall -c $<

all: build hlint cabal-build

build: $(objs)

hlint:
	hlint --utf8 $(sources)

cabal-build:
	cabal clean
	cabal configure
	cabal build
	cabal haddock \
		--internal \
		--hyperlink-source

clean:
	$(RM) $(objs) $(interfaces)
	cabal clean