From 5db94027e469f1187c33fbc64e3336cee0703742 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 20 Aug 2012 16:32:19 -0400 Subject: [PATCH] Include the makefile in the tarball. Add a 'dist' makefile target. Clean up some makefile junk. Bump to v0.0.2 to cover up the makefile snafu. --- lwn-epub.cabal | 4 ++-- makefile | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lwn-epub.cabal b/lwn-epub.cabal index c18f60f..61b3270 100644 --- a/lwn-epub.cabal +++ b/lwn-epub.cabal @@ -1,5 +1,5 @@ name: lwn-epub -version: 0.0.1 +version: 0.0.2 cabal-version: >= 1.8 author: Michael Orlitzky maintainer: Michael Orlitzky @@ -15,7 +15,7 @@ description: A command-line utility that downloads an LWN article (or issue), cleans it up, and writes it to EPUB with a stylesheet that looks decent on the Kindle. It can use account credentials to log in and access the current edition. -data-files: doc/README +data-files: makefile doc/README executable lwn-epub build-depends: diff --git a/makefile b/makefile index 9a13372..69ab48d 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -.PHONY : test publish_doc doc src_html hlint +.PHONY : test dist # There's onlt one '$' in the awk script, but we have to double-money # it for make. @@ -25,12 +25,9 @@ clean: install: $(BIN) runghc Setup.hs install -# Neither 'haddock' nor 'hscolour' seem to work properly. -doc: src_html - runghc Setup.hs hscolour --executables - runghc Setup.hs haddock --internal \ - --executables \ - --hyperlink-source +dist: + runghc Setup.hs configure + runghc Setup.hs sdist test: $(BIN) $(TESTSUITE_BIN) runghc Setup.hs test -- 2.44.2