aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile22
-rw-r--r--web/index.txt7
2 files changed, 21 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 9b08ab790..369ee5e6f 100644
--- a/Makefile
+++ b/Makefile
@@ -19,16 +19,18 @@ CONFIGURE := configure
NAME := $(shell sed -ne 's/^[Nn]ame:[[:space:]]*//p' $(CABAL).in)
VERSION := $(shell sed -ne 's/^version[[:space:]]*=[[:space:]]*"\([^"]*\)"/\1/p' $(SRCDIR)/Main.hs)
EXECSBASE := $(shell sed -ne 's/^[Ee]xecutable:[[:space:]]*//p' $(CABAL).in)
-# Add .exe extensions if we're running Windows/Cygwin.
-EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | sed -ne 's/^cygwin.*$$/\.exe/p')
-EXECS := $(patsubst %,%$(EXTENSION),$(EXECSBASE))
-# First entry in Cabal's executable stanza is the main executable.
-MAIN := $(firstword $(EXECS))
#-------------------------------------------------------------------------------
# Install targets
#-------------------------------------------------------------------------------
-WRAPPERS := html2markdown latex2markdown markdown2html markdown2latex markdown2pdf
+# Add .exe extensions if we're running Windows/Cygwin.
+EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | \
+ sed -ne 's/^cygwin.*$$/\.exe/p')
+EXECS := $(addsuffix $(EXTENSION),$(EXECSBASE))
+# First entry in Cabal's executable stanza is the main executable.
+MAIN := $(firstword $(EXECS))
+WRAPPERS := html2markdown latex2markdown markdown2html \
+ markdown2latex markdown2pdf
PROGS := $(EXECS) $(WRAPPERS)
DOCS := README.html README BUGS TODO
@@ -331,6 +333,7 @@ web_dest:=web/pandoc
make_page:=./$(MAIN) -s -B $(web_src)/header.html \
-A $(web_src)/footer.html \
-H $(web_src)/css
+win_main:=$(basename $(MAIN)).exe
cleanup_files+=$(web_dest)
website: $(web_dest)
$(web_dest)/: $(MAIN) html $(tarball_name)
@@ -342,12 +345,17 @@ $(web_dest)/: $(MAIN) html $(tarball_name)
echo "*** Missing ../$(deb_main). ***"; \
exit 1; \
}
+ @[ -f $(win_main) ] || { \
+ echo "*** Missing $(win_main). ***"; \
+ exit 1; \
+ }
-rm -rf $(web_dest)
( \
mkdir $(web_dest); \
cp -r html $(web_dest)/doc; \
cp ../$(osx_dmg_name) $(web_dest)/; \
cp ../$(deb_main) $(web_dest)/; \
+ cp $(win_main) $(web_dest)/; \
cp $(tarball_name) $(web_dest)/; \
cp $(web_src)/*.css $(web_dest)/; \
sed -e 's#@PREFIX@#$(PREFIX)#g' $(osx_src)/Welcome | \
@@ -361,6 +369,8 @@ $(web_dest)/: $(MAIN) html $(tarball_name)
sed -e 's/@TARBALL_NAME@/$(tarball_name)/g' $(web_src)/index.txt | \
sed -e 's/@DEB_NAME@/$(deb_main)/g' | \
sed -e 's/@OSX_DMG_NAME@/$(osx_dmg_name)/g' | \
+ sed -e 's/@WINDOWS_EXE_NAME@/$(win_main)/g' | \
+ sed -e 's/@VERSION@/$(VERSION)/g' | \
$(make_page) > $(web_dest)/index.html; \
) || { rm -rf $(web_dest); exit 1; }
diff --git a/web/index.txt b/web/index.txt
index cbb5d9540..526ee73a2 100644
--- a/web/index.txt
+++ b/web/index.txt
@@ -18,19 +18,22 @@ For more information, see the [README](README.html) file.
**Source distribution:** [`@TARBALL_NAME@`](@TARBALL_NAME@).
To install, unpack the archive and follow the instructions in the
-[INSTALL](INSTALL.html) file. You'll need the [GHC] Haskell compiler.
+[INSTALL](INSTALL.html) file. You'll need the [GHC] Haskell compiler,
+version 6.4 or higher.
**MacOS X binary package:** [`@OSX_DMG_NAME@`](@OSX_DMG_NAME@).
To install, just double-click the package icon in the disk
image. See the [installation notes](osx-notes.html) for important
information about setting your `PATH`. Note: This package was
-compiled on a G4 Mac; it will work on an Intel Mac via emulation.
+compiled on a G4 Mac; it will also work on an Intel Mac via emulation.
**Debian binary package:** [`@DEB_NAME@`](@DEB_NAME@).
To install (on x86 Debian-based linux systems only):
sudo dpkg -i @DEB_NAME@
+**Windows executable:** [`@WINDOWS_EXE_NAME@`](@WINDOWS_EXE_NAME@).
+
**Repository:** Pandoc has a publicly accesible subversion repository
at Google Code (<http://code.google.com/p/pandoc>). To check out the
latest, bleeding-edge source code: