git.iko.soy/typeable/pandoc
on master help sign in
+ Small changes to Makefile for better handling of Windows executable.

+ Added windows executable to the website target. git-svn-id: https://pandoc.googlecode.com/svn/trunk@210 788f1e2b-df1e-0410-8736-df70ead52e1b

commit4ab3eb300360688004a597417f6ce79d828dcf91 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 16 Dec 2006, 19:11 (20 years ago) parent19bad82
2 files changed+21−8
Makefile+16−6 web/index.txt+5−2
Makefile+16−6
@@ -19,16 +19,18 @@ CONFIGURE := configure
1919NAME := $(shell sed -ne 's/^[Nn]ame:[[:space:]]*//p' $(CABAL).in)
2020VERSION := $(shell sed -ne 's/^version[[:space:]]*=[[:space:]]*"\([^"]*\)"/\1/p' $(SRCDIR)/Main.hs)
2121EXECSBASE := $(shell sed -ne 's/^[Ee]xecutable:[[:space:]]*//p' $(CABAL).in)
22−# Add .exe extensions if we're running Windows/Cygwin.
23−EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | sed -ne 's/^cygwin.*$$/\.exe/p')
24−EXECS := $(patsubst %,%$(EXTENSION),$(EXECSBASE))
25−# First entry in Cabal's executable stanza is the main executable.
26−MAIN := $(firstword $(EXECS))
2722
2823#-------------------------------------------------------------------------------
2924# Install targets
3025#-------------------------------------------------------------------------------
31−WRAPPERS := html2markdown latex2markdown markdown2html markdown2latex markdown2pdf
26+# Add .exe extensions if we're running Windows/Cygwin.
27+EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | \
28+ sed -ne 's/^cygwin.*$$/\.exe/p')
29+EXECS := $(addsuffix $(EXTENSION),$(EXECSBASE))
30+# First entry in Cabal's executable stanza is the main executable.
31+MAIN := $(firstword $(EXECS))
32+WRAPPERS := html2markdown latex2markdown markdown2html \
33+ markdown2latex markdown2pdf
3234PROGS := $(EXECS) $(WRAPPERS)
3335DOCS := README.html README BUGS TODO
3436
@@ -331,6 +333,7 @@ web_dest:=web/pandoc
331333make_page:=./$(MAIN) -s -B $(web_src)/header.html \
332334 -A $(web_src)/footer.html \
333335 -H $(web_src)/css
336+win_main:=$(basename $(MAIN)).exe
334337cleanup_files+=$(web_dest)
335338website: $(web_dest)
336339$(web_dest)/: $(MAIN) html $(tarball_name)
@@ -342,12 +345,17 @@ $(web_dest)/: $(MAIN) html $(tarball_name)
342345 echo "*** Missing ../$(deb_main). ***"; \
343346 exit 1; \
344347 }
348+ @[ -f $(win_main) ] || { \
349+ echo "*** Missing $(win_main). ***"; \
350+ exit 1; \
351+ }
345352 -rm -rf $(web_dest)
346353 ( \
347354 mkdir $(web_dest); \
348355 cp -r html $(web_dest)/doc; \
349356 cp ../$(osx_dmg_name) $(web_dest)/; \
350357 cp ../$(deb_main) $(web_dest)/; \
358+ cp $(win_main) $(web_dest)/; \
351359 cp $(tarball_name) $(web_dest)/; \
352360 cp $(web_src)/*.css $(web_dest)/; \
353361 sed -e 's#@PREFIX@#$(PREFIX)#g' $(osx_src)/Welcome | \
@@ -361,6 +369,8 @@ $(web_dest)/: $(MAIN) html $(tarball_name)
361369 sed -e 's/@TARBALL_NAME@/$(tarball_name)/g' $(web_src)/index.txt | \
362370 sed -e 's/@DEB_NAME@/$(deb_main)/g' | \
363371 sed -e 's/@OSX_DMG_NAME@/$(osx_dmg_name)/g' | \
372+ sed -e 's/@WINDOWS_EXE_NAME@/$(win_main)/g' | \
373+ sed -e 's/@VERSION@/$(VERSION)/g' | \
364374 $(make_page) > $(web_dest)/index.html; \
365375 ) || { rm -rf $(web_dest); exit 1; }
366376
web/index.txt+5−2
@@ -18,19 +18,22 @@ For more information, see the [README](README.html) file.
1818
1919**Source distribution:** [`@TARBALL_NAME@`](@TARBALL_NAME@).
2020To install, unpack the archive and follow the instructions in the
21−[INSTALL](INSTALL.html) file. You'll need the [GHC] Haskell compiler.
21+[INSTALL](INSTALL.html) file. You'll need the [GHC] Haskell compiler,
22+version 6.4 or higher.
2223
2324**MacOS X binary package:** [`@OSX_DMG_NAME@`](@OSX_DMG_NAME@).
2425To install, just double-click the package icon in the disk
2526image. See the [installation notes](osx-notes.html) for important
2627information about setting your `PATH`. Note: This package was
27−compiled on a G4 Mac; it will work on an Intel Mac via emulation.
28+compiled on a G4 Mac; it will also work on an Intel Mac via emulation.
2829
2930**Debian binary package:** [`@DEB_NAME@`](@DEB_NAME@).
3031To install (on x86 Debian-based linux systems only):
3132
3233 sudo dpkg -i @DEB_NAME@
3334
35+**Windows executable:** [`@WINDOWS_EXE_NAME@`](@WINDOWS_EXE_NAME@).
36+
3437**Repository:** Pandoc has a publicly accesible subversion repository
3538at Google Code (<http://code.google.com/p/pandoc>). To check out the
3639latest, bleeding-edge source code: