Commit graph

359 commits

Author SHA1 Message Date
John MacFarlane
22faea15c2 Makefile: give allocation data in benchmarks. 2021-01-31 18:18:53 -08:00
John MacFarlane
fe06437ba4 Use tasty-bench instead of criterion for benchmarks.
It is much lighter-weight.
2021-01-30 18:01:14 -08:00
John MacFarlane
76b36fcb17 Use simple default.nix.
Remove nix makefile targets.
2021-01-13 09:52:09 -08:00
John MacFarlane
2787083b76 Use project.nix instead of default.nix for generated file. 2021-01-12 22:32:26 -08:00
John MacFarlane
bd3b7c2e2c Delete default.nix.
It is generated and shouldn't be in repository.
2021-01-12 22:29:29 -08:00
John MacFarlane
91fbea29dd Add files for using nix-shell.
'make nix-shell' enters a nix shell with pandoc dependencies
installed.
2021-01-12 21:18:17 -08:00
John MacFarlane
757dbc637b Improve check target to test data/ too. 2020-12-18 12:05:24 -08:00
John MacFarlane
559b12ee3a Makefile: Fix checkdocs target. 2020-12-18 09:46:20 -08:00
John MacFarlane
c8c8c8b24c Add check and check-cabal target ...
to check to make sure everything needed in tests will get
into the source sdist.
2020-12-18 09:23:39 -08:00
John MacFarlane
d477df03b4 Makefile: remove macospkg target.
Now we just download the artifacts from CircleCI, and make.
2020-12-17 23:39:22 -08:00
John MacFarlane
6ef38e9ab3 Fix pandoc-templates target to include all partials. 2020-09-15 10:35:32 -07:00
John MacFarlane
e5adec5a01 Makefile: Remove obsolete windows package build targets. 2020-08-27 18:10:21 -07:00
John MacFarlane
5e1de9cced Makefile: Fix macospkg target to fetch target from S3 artifacts. 2020-08-27 18:10:15 -07:00
John MacFarlane
e65c6b0b5d Use the smart extension when generating pandoc's man page.
See #6613.
2020-08-12 23:11:28 -07:00
John MacFarlane
c990027832 Linux rc build: use ghc-musl container.
This simplifies our build process a bit (over using
a customized alpine container).

Use new `--enable-executable-static` flag in build.

make_artifacts.sh: Fix deprecated find -perm syntax.
2020-08-11 21:33:21 -07:00
John MacFarlane
5a216f7bd7 update date, man page, README. 2020-07-23 17:56:12 -07:00
John MacFarlane
2cd3694818 Fix 'make pandoc-templates'. 2020-06-29 21:57:53 -07:00
John MacFarlane
004907f4f2 make changes_github: use details tag to make changelog collapsible. 2020-03-15 11:23:55 -07:00
Albert Krewinkel
9ffa8100d7
tools: delete Lua documentation helper cruft
The tools were useful to generate documentation from the Lua sources.
However, most Lua functions are defined in Haskell, and the even
documentation of functions written in Lua has been updated manually for
quite a while now. The unused helper scripts, which have bit-rot to the
point that they now produce broken links, are therefore removed.
2020-03-13 14:22:23 +01:00
John MacFarlane
4a5e7b2ada make pandoc-templates: copy README and styles.*. 2020-02-14 09:07:10 -08:00
John MacFarlane
4c3db9273f Apply linter suggestions. Add fix_spacing to lint target in Makefile. 2020-02-07 09:08:22 -08:00
John MacFarlane
7ba55d7405 Improve pandoc man page generation.
Use before and after includes rather than special template.
2019-12-22 21:30:01 -08:00
John MacFarlane
0bfe478a69 Use external emojis package.
Moved the emoji-specified code into an external package
we can depend on.
2019-12-08 17:27:18 -08:00
John MacFarlane
2f87b04450 Makefile - fix emoji.json path 2019-12-05 12:33:17 -08:00
John MacFarlane
0d0ec98dd5 Generate Emoji module with TH.
- Add Text.Pandoc.Emoji.TH.
- Replace long literal list in Text.Pandoc.Emoji with one-liner
  generating it from data/emoji.json using TH.
- Add Makefile target to download data/emoji.json.
- Remove tools/emoji.hs.
2019-11-27 21:31:53 -08:00
John MacFarlane
97387f8fac Increase GC allocation space for compilation in cabal.project. 2019-11-27 18:49:44 -08:00
John MacFarlane
dc83f0173f Fix changes_github Makefile target. 2019-11-22 09:23:14 -08:00
John MacFarlane
f0577fe360 Makefile: ghci target 2019-09-06 21:09:44 -07:00
John MacFarlane
1c35167c3a Small cleanups in Makefile. 2019-09-05 17:34:47 -07:00
John MacFarlane
4559bc257b Makefile - remove references to obsolete flag.
See #5694.
2019-09-05 15:54:46 -07:00
John MacFarlane
e2c4d1ccfc Makefile: add ghcid target. 2019-08-25 15:38:17 -07:00
John MacFarlane
c17ace8c09 Makefile: remove --resolver= from targets.
This causes unnecessary recompilation.
2019-05-21 21:56:50 -07:00
John MacFarlane
b217137d98 Use new code signing cert for Windows. 2019-05-17 23:05:49 -07:00
John MacFarlane
53fd8e02af Remove install step from make quick-cabal. 2019-03-27 10:06:55 -07:00
John MacFarlane
9e63924f28 Add ghc-options to cabal.project. 2019-03-27 09:36:52 -07:00
John MacFarlane
3394d3835d Makefile - remove --resolver from quick target. 2019-03-09 14:30:07 -08:00
John MacFarlane
572bd4103c Use lts-13 in makefile 2019-01-30 14:38:35 -08:00
John MacFarlane
d333c283cc Docx writer: Fix bookmarks to headers with long titles.
Word has a 40 character limit for bookmark names.  In
addition, bookmarks must begin with a letter.  Since
pandoc's auto-generated identifiers may not respect
these constraints, some internal links did not work.

With this change, pandoc uses a bookmark name based
on the SHA1 hash of the identifier when the identifier
isn't a legal bookmark name.

Closes #5091.
2018-11-20 23:43:21 -05:00
John MacFarlane
275594f7f7 Makefile: added full-cabal target.
Also, use cabal-new configure in quick-cabal and full-cabal.
2018-10-13 23:13:53 -07:00
John MacFarlane
c86e3d2b6f Makefile: make trypandoc, benchmarks in quick-cabal target. 2018-10-13 23:13:53 -07:00
John MacFarlane
f66a6704f9 Makefile - make .msi download targets more robust.
Now they should be insensitive to changes in the order
of the builds on appveyor.
2018-10-07 11:16:32 -07:00
John MacFarlane
9e58730a74 Makefile - make stack quick build the default 2018-10-02 09:23:53 -07:00
John MacFarlane
cc76c5e6b4 Makefile: improved quick-cabal target. 2018-10-02 00:10:05 -07:00
John MacFarlane
df28f8cf9e Makefile: added quick-cabal target as default. 2018-10-01 23:58:13 -07:00
John MacFarlane
e09dc44c00 Makefile: Fix executable path in trypandoc target. 2018-09-16 22:31:35 -07:00
John MacFarlane
24ccfedf7a 'make winpkg': Fixed creation of zips. 2018-09-16 16:15:08 -07:00
John MacFarlane
965806f087 Makefile: fix creation of windows zip.
This needed tweaking when the msi was fixed to be 64-bit,
so that 'Program Files (x86)' is used.
2018-09-16 14:00:18 -07:00
John MacFarlane
08a008af83 Fix 'make winpkg'. 2018-09-16 13:45:46 -07:00
John MacFarlane
91cc2492fa Makefile: ghc options to speed compilation for 'make quick'. 2018-08-13 09:30:06 -07:00
John MacFarlane
55047b4919 Makefile: add some warnings to GHCOPTS. 2018-08-10 16:16:00 -07:00
John MacFarlane
e592904087 Make sure pandoc-windows-*.msi are deleted as intermediate files. 2018-07-19 22:43:19 -07:00
John MacFarlane
bac79077e1 Makefile: use lts12 resolver. 2018-07-13 09:52:07 -07:00
John MacFarlane
c8331a924d Makefile: build 32- and 64-bit Windows packages. 2018-04-15 17:09:50 -07:00
John MacFarlane
1091614f07 Fixed typo in Makefile. 2018-01-18 09:18:13 -08:00
John MacFarlane
70ea1d19ea Makefile - add prerelease sanity check for tabs in docs. 2018-01-18 08:42:43 -08:00
John MacFarlane
69e262fc5b Use gfm for generated README.md. 2017-12-30 10:40:41 -08:00
John MacFarlane
81b0b20827 Generate README.md from template and MANUAL.txt.
`make README.md` will generate the README.md after changes
to MANUAL.txt have been made.
2017-12-29 16:41:51 -08:00
John MacFarlane
9029206715 Makefile tweaks 2017-12-28 16:39:30 -08:00
John MacFarlane
4496b0da0f Makefile: add update-website target 2017-12-28 16:12:32 -08:00
John MacFarlane
4371b07cd1 Added 'make trypandoc' target 2017-12-27 14:09:48 -08:00
John MacFarlane
9ef3d77652 Makefile: Add 'pandoc-templates' target. 2017-12-27 09:35:20 -08:00
John MacFarlane
f5c8dd2745 makefile: use lts-10 resolver. 2017-12-20 12:35:58 -08:00
John MacFarlane
773d6a17da Added 'packages' target to Makefile. 2017-11-20 21:40:00 -08:00
John MacFarlane
0eb132c518 Makefile - create windows binary package as zip as well as msi. 2017-11-20 21:34:22 -08:00
John MacFarlane
6b75d6e08c Use lua filter to generate man page from MANUAL.
Instead of three Haskell filters.

This is easier and faster.
2017-11-11 15:26:24 -08:00
John MacFarlane
f7a98a6d7f Fix 'make changes_github'. 2017-11-05 09:58:35 -08:00
John MacFarlane
4b9c33b50e Makefile: fix version detection. 2017-10-29 16:30:09 -07:00
John MacFarlane
218d212f30 Makefile: make SOURCEFILES overridable for make lint, make format. 2017-10-29 13:15:09 -07:00
John MacFarlane
a27dc79073 Updated Glob upper bound. 2017-10-23 11:20:31 -07:00
Albert Krewinkel
c363519302 Provide make target to update lua module docs (#3946)
The pandoc module documentation in doc/lua-filters.md was automatically
generated from `data/pandoc.lua`.  A make target is provided which uses
a lua filter to update the documentation.
2017-09-30 10:45:31 -04:00
John MacFarlane
54cc8e2702 Makefile - disable parallel build on 'make quick'.
Interleaved error messages too confusing.
2017-08-11 22:09:15 -07:00
John MacFarlane
ca3413690f Reorganized Makefile. 2017-08-09 13:45:22 -07:00
John MacFarlane
4cef2a296f Makefile: use nightly + colored output for quick. 2017-08-09 13:21:18 -07:00
John MacFarlane
b4f069c11c Makefile: use nightly. 2017-08-09 13:18:34 -07:00
John MacFarlane
3b3ae54a39 Makefile: split 'make haddock' from 'make full'. 2017-06-25 10:06:19 +02:00
John MacFarlane
dd8f086a2c Makefile: improved 'make full'.
- Disable optimizations.
- Build everything, inc. trypandoc and benchmarks.
- Use parallel build.
2017-06-24 13:46:40 +02:00
John MacFarlane
9849ba7fd7 Use Control.Monad.State.Strict throughout.
This gives 20-30% speedup and reduction of memory
usage in most of the writers.
2017-06-17 07:45:28 +02:00
John MacFarlane
25bfa26554 Fixed weigh-pandoc for Text readers. 2017-06-10 21:10:52 +02:00
John MacFarlane
28bea39e83 Changed comodo code signing key path. 2017-06-09 23:14:26 +02:00
John MacFarlane
c00471ca0d Makefile: added 'lint' target. 2017-06-01 15:09:30 +02:00
John MacFarlane
00fffefb36 Makefile: fixed filename for windows package download. 2017-05-24 22:54:16 +02:00
John MacFarlane
af57de0b27 default.ms: Add settings for document variables like width. 2017-03-24 22:15:46 +01:00
John MacFarlane
6756e23f94 Rename static-linux -> linux. 2017-03-19 15:35:52 +01:00
John MacFarlane
e98b9f6796 Removed unneeded deb directory.
We now use static-linux to create the deb.
2017-03-19 15:35:22 +01:00
John MacFarlane
257d96f199 Makefile: allow make test to take TESTARGS. 2017-03-15 17:22:07 +01:00
John MacFarlane
6ecc5b96a9 Use tasty for tests rather than test-framework. 2017-03-14 17:07:23 +01:00
John MacFarlane
738880bfcb Makefile - removed 'refactor' target. 2017-03-04 13:40:02 +01:00
John MacFarlane
19d86132a8 Makefile: Separate refactor and reformat targets.
Removed tools/refactor.sh.
2017-03-04 13:13:12 +01:00
John MacFarlane
0edfbf1478 Added 'make refactor' using hlint, stylish-haskell. 2017-03-04 12:49:14 +01:00
John MacFarlane
f10dd380bb Makefile: make version overridable. 2017-02-07 19:01:21 +01:00
John MacFarlane
18bc0a67eb Makefile: added BRANCH variable for winpkg 2017-02-05 12:15:02 +01:00
John MacFarlane
c96b64e91b Name change OSX -> MacOS.
Add a -MacOS suffix to mac package rather than -OSX.
CHanged local names from osx to macos.
2017-01-31 15:06:58 +01:00
John MacFarlane
47da92df2d Fixed up github changes target in Makefile so #s aren't escaped. 2017-01-29 21:55:08 +01:00
John MacFarlane
0c029e8258 Moved make_osx_package.sh to osx/ directory. 2016-12-10 22:58:05 +01:00
John MacFarlane
f3cb472f31 Makefile: use stack. 2016-12-08 11:46:40 +01:00
ickc
74ebeeedf0 remove make_travis_yml.hs (#3235) 2016-11-16 11:58:11 +01:00
Albert Krewinkel
a396003a31 Rename README to MANUAL.txt 2016-07-20 21:16:45 +02:00
John MacFarlane
7826cc2a20 Added winpkg target to Makefile.
This downloads the windows package from appveyor and signs
it using the key.

This way we needn't mess with a Windows VM to build the package.
2016-07-14 10:29:46 -07:00
John MacFarlane
90a2df3f7c Fixed debpkg target. 2016-01-02 16:54:45 -08:00
John MacFarlane
5c45a43399 stack.full.yaml - use local versions of everything. 2015-11-28 17:36:05 -08:00