packages feed

iso3166-country-codes-0.1: Makefile

all: Data/ISO3166_CountryCodes.o docs

Data/ISO3166_CountryCodes.hs:  Data/ISO3166_CountryCodes/GenerateDataDeclaration Data/ISO3166_CountryCodes.preamble.hs
	Data/ISO3166_CountryCodes/GenerateDataDeclaration > $@

Data/ISO3166_CountryCodes/GenerateDataDeclaration: Data/ISO3166_CountryCodes/GenerateDataDeclaration.hs
	ghc --make -iData/ISO3166_CountryCodes $@

%.o: %.hs
	ghc --make $<

.PHONY: docs

docs: Data/Documentation/haddock/ISO3166_CountryCodes.haddock

Data/Documentation/haddock/ISO3166_CountryCodes.haddock: Data/Documentation/haddock Data/ISO3166_CountryCodes.hs
	haddock -o Data/Documentation/haddock -h\
                --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/base,/usr/share/doc/ghc/libraries/base/base.haddock \
                --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/haskell98,/usr/share/doc/ghc/libraries/haskell98/haskell98.haddock \
                --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/template-haskell/,/usr/share/doc/ghc/libraries/template-haskell/template-haskell.haddock \
                --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/time/,/usr/share/doc/ghc/libraries/time/time.haddock \
                --read-interface=http://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/,/usr/share/doc/ghc/libraries/bytestring/bytestring.haddock \
                --read-interface=http://hackage.haskell.org/packages/archive/containers/0.2.0.1/doc/html/,/usr/share/doc/ghc/libraries/containers/containers.haddock \
	--dump-interface Data/Documentation/haddock/ISO3166_CountryCodes.haddock \
	Data/ISO3166_CountryCodes.hs

Data/Documentation/haddock:
	mkdir -p Data/Documentation/haddock

.PHONY: clean
clean:
	rm -rf Data/*.hi Data/*.o Data/ISO3166_CountryCodes.hs Data/ISO3166_CountryCodes/*.hi Data/ISO3166_CountryCodes/*.o Data/ISO3166_CountryCodes/GenerateDataDeclaration Data/ISO3166_CountryCodes/iso3166_en_code_lists.txt Data/ISO3166_CountryCodes/iso3166_en_code_lists.txt.last-modified Data/Documentation/haddock