Commit graph

57 commits

Author SHA1 Message Date
Josh Stone
be82ac2cb0 Support overrides for bin, lib, and include
Usually bin and include are the same, but for instance lib may want to be
lib64 on Red Hat distros.  Add BINDIR, LIBDIR, and INCLUDEDIR variables
that can be overridden on the command line.

This commit also tweaks the way the libraries are installed, dropping
execute privileges on libhoedown.a, and making sure libhoedown.so is
installed as a symlink.  (The install command doesn't preserve symlinks.)
2015-05-15 12:06:38 -07:00
Josh Stone
4e38dcab44 Support command-line override of CFLAGS
Most of the CFLAGS options can reasonably be changed at will, but a few
are necessary.  Move those few into HOEDOWN_CFLAGS, so the rest can be
overridden, e.g. by distro policy.
2015-05-15 12:01:48 -07:00
Josh Stone
ede482b2a6 Include libhoedown.a in "make all" 2015-05-15 11:58:49 -07:00
Josh Stone
0c8eb03f10 Set an SONAME for libhoedown.so.3 2015-05-15 11:57:50 -07:00
Xavier Mendez
3afc3ec505 Release v3.0.0! 2014-11-04 19:18:32 +01:00
Xavier Mendez
08910873cf Simplify Makefile 2014-11-04 13:53:58 +01:00
Xavier Mendez
5aa09e2db8 Simple install target 2014-11-04 07:20:16 +01:00
Devin Torres
9aa8c8acf1 Use a stricter subset of C 2014-10-18 18:33:34 -05:00
Xavier Mendez
9b561d721e Don't use "for (declaration" 2014-10-04 12:00:11 +02:00
Devin Torres
d20dd8ee04 Merge pull request #122 from uranusjr/unittest
New test framework based on Python’s unittest module
2014-09-13 00:11:30 -05:00
Tzu-ping Chung
855bc34742 Make test script Python 3-compatible 2014-09-09 17:48:42 +08:00
Tzu-ping Chung
8cc788ec59 New Python implemented test script 2014-09-09 16:10:50 +08:00
Xavier Mendez
a6b90a7cf7 Import improvements from Lanli (and more things) 2014-09-02 19:21:58 +02:00
Xavier Mendez
e76c6a8477 Makefile: LDFLAGS need to be after the source files 2014-07-31 14:48:40 +02:00
Xavier Mendez
ea8446f6b8 Rename examples/ to bin/ 2014-03-23 20:17:02 +01:00
Xavier Mendez
0b0519e076 api_v3: document: put version stuff into its own pair 2014-02-06 20:38:21 +01:00
Xavier Mendez
419422bd9a api_v3: document: begin by renaming pertinent files 2014-02-06 19:40:41 +01:00
Craig Barnes
d3e36c51d6 Fix portability issues in test runner script 2014-01-23 06:36:48 +00:00
Craig Barnes
6621d8ef36 Add Bash test runner 2014-01-23 03:30:46 +00:00
Craig Barnes
fce375b1f1 Fix object compilation target in Makefile 2014-01-21 20:47:56 +00:00
Devin Torres
55ee9cb426 Allow building static library 2013-09-25 20:06:13 -05:00
Devin Torres
3d0599d959 $(RM) doesn't require -f 2013-09-25 19:49:13 -05:00
Devin Torres
2c95da1d7a More cleanup and API coalescing 2013-09-23 19:35:54 -05:00
Devin Torres
8a28f5b58e Fix building with MingW and MSVC 2013-09-22 04:10:51 -05:00
Devin Torres
0a8df3b5b1 Use -fpic instead of -fPIC 2013-09-21 05:10:16 -05:00
Devin Torres
bcfd0a2d96 Cleanup the Makefile 2013-09-21 04:57:13 -05:00
Xavier Mendez
e2cfbdc2e9 Merge latest changes from @devinus into misc-reorganize 2013-09-21 10:12:28 +02:00
Devin Torres
2508c4b5c7 Improvements to the gperf flow 2013-09-20 21:57:08 -05:00
Xavier Mendez
2845a9e5c2 Remove unnecessary preambles 2013-09-20 19:00:37 +02:00
Xavier Mendez
546c1e1126 Remove html folder from Makefiles, correct sources 2013-09-20 17:08:29 +02:00
Devin Torres
189b325f19 Begin code reorganization 2013-09-20 01:14:14 -05:00
Devin Torres
d5675487a5 find_block_tag: Use faster switch statement over an array lookup 2013-09-20 00:02:43 -05:00
Devin Torres
5c4d75bccb Use the system specified CC by default 2013-09-18 16:37:06 -05:00
Devin Torres
f9227bba79 Import the official Markdown 1.0.3 test suite 2013-09-18 16:36:04 -05:00
Mike Buland
febd3269a3 Removed useless -Wl from .so linking command. 2013-09-18 13:13:11 -05:00
Vicent Marti
4f2bd3493f makefile: Remove MFLAGS 2011-11-06 21:20:53 +01:00
Vicent Marti
72a940f269 Fix mixed HTML/URI escaping 2011-09-13 00:20:42 +02:00
Vicent Marti
a3373cd380 Use Houdini for escaping
Ta-da.
2011-09-08 21:37:50 +02:00
Vicent Marti
d7d2af549e UTF-8 handling overhaul
Sundown doesn't handle "strings of characters", it handles buffers
with bytes with an UTF-8 encoding.

Name stuff accordingly.
2011-09-02 20:19:48 +02:00
Vicent Marti
fa42843852 Drop dependency on the old array.c
The old array was not quite optimal, and was not used optimally either.

- The `struct array` that was used for accessing link references has
been replaced with a minimal, fixed-width hash table. This should
be much more straightforward for small documents.

- The `struct parray` used as a string pool has been replaced with
a fast-growing stack. Realloc'ing once per push has never been a
good idea anyway.

Yey for losing boilerplate!
2011-09-01 04:32:38 +02:00
Vicent Marti
9988a0123c Perfect hashing for HTML block names
Because fuck binary searches, that's why.
2011-08-30 17:46:06 +02:00
Vicent Marti
3753d53fbc Add -fPIC for compiling 2011-08-09 14:28:38 -07:00
Vicent Marti
cdfaee1993 smartypants: Do not replace inside <code> blocks
Following the original Smartypants code, do not do SmartyPants
replacements inside of <code>, <pre>, <kbd> and <script> blocks.
2011-07-19 21:32:14 +02:00
Vicent Marti
5d201dbcdc Rename Upskirt to Sundown
It is by the goodness of God that in our country we have those
three unspeakably precious things:

    freedom of speech,
    freedom of conscience,
    and the prudence never to practice either of them.

                -- Mark Twain, Following the Equator (1897)
2011-07-19 01:10:05 +02:00
Vicent Marti
cf5cb52ae9 Remove html_autolink.c
This file has been moved to Rinku
2011-06-11 16:17:51 +02:00
Vicent Marti
cbb7fb53c6 Create an autolinking API for external applications 2011-06-08 18:30:37 +02:00
Samuel Bronson
be552bafdc Update Makefile and .gitignore to deal with smartypants.
... and get "make clean" to work under MSYS, too (*sigh*).
2011-06-05 14:55:08 -04:00
Samuel Bronson
dbc9d800ed Tweaks to make things work better with MinGW. 2011-06-05 14:54:22 -04:00
Vicent Marti
26c68ad080 Include the HTML renderer when building the shared lib 2011-05-11 20:01:17 +03:00
Vicent Marti
eb6f5474c2 Upskirt now renders HTML by default
The XHTML renderer has been changed to HTML by default, with a new
renderer flag called "HTML_USE_XHTML" that enables closing tags.
2011-05-06 20:29:41 +03:00