aboutsummaryrefslogtreecommitdiff
path: root/Makefile.windows
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-01-09 02:53:05 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-01-09 02:53:05 +0000
commit13a262af6a44412a71f8879b76fb040af2e3a25a (patch)
treede5b3b5a2762cf53ff872707406e21fb7dd6e145 /Makefile.windows
parent66c4f90e09a7087c4d67ff4b0787a27821271eab (diff)
downloadpandoc-13a262af6a44412a71f8879b76fb040af2e3a25a.tar.gz
Windows installer - fixed bug in data file locations.
Resolves Issue #197. + Moved windows/makefile to Makefile.windows + Minor fixes in Makefile.windows + Use globbing to simplify pandoc-setup.iss + Put binaries in bin/ subdirectory of install dir + Specify null datafile subdirectory, so that data files go right in install dir, rather than in {installdir}/pandoc-{version}. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1798 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Makefile.windows')
-rw-r--r--Makefile.windows17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile.windows b/Makefile.windows
new file mode 100644
index 000000000..81da1cc4d
--- /dev/null
+++ b/Makefile.windows
@@ -0,0 +1,17 @@
+# 'mingw32-make -f Makefile.windows prep'
+# prepares for building the Inno Setup installer
+# note: we use -f-library in building pandoc, because
+# if the library is built, the data file paths will not be relocatable!
+
+.PHONY: prep
+prep:
+ cabal clean
+ cabal configure -f-library -fwrappers -fhighlighting --datasubdir=
+ cabal build
+ strip dist\build\pandoc\pandoc.exe
+ strip dist\build\hsmarkdown\hsmarkdown.exe
+ strip dist\build\markdown2pdf\markdown2pdf.exe
+ dist\build\pandoc\pandoc.exe -s --template templates\html.template -S README -o README.html
+ copy COPYING COPYING.txt
+ copy COPYRIGHT COPYRIGHT.txt
+