diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-16 16:15:20 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-16 16:15:20 -0800 |
commit | 4e587e8be5300d80e23ffeec5b11ba3eedf61276 (patch) | |
tree | 9a8334baf6ca6bfda5f892e43cced593a5f94103 /Makefile | |
parent | 517174da8618a46f6ac23eb03e29922ce0283634 (diff) |
Added targets to regenerate html_unescape.h and case_fold_switch.inc.
For now these are just in the regular Makefile, not in CMakeLists.txt,
since the generated files are in the repo and shouldn't ordinarily be
regenerated.
Note that html_unescape.h is a bit different on regeneration,
and this removes error messages we were getting with Clang.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -23,7 +23,7 @@ all: $(BUILDDIR) check: @cmake --version > /dev/null || (echo "You need cmake to build this program: http://www.cmake.org/download/" && exit 1) -$(BUILDDIR): check +$(BUILDDIR): check $(SRCDIR)/html/html_unescape.h $(SRCDIR)/case_fold_switch.inc mkdir -p $(BUILDDIR); \ cd $(BUILDDIR); \ cmake .. -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) @@ -66,6 +66,14 @@ clean: $(PROG): all +# We include html_unescape.h in the repository, so this shouldn't +# normally need to be generated. +$(SRCDIR)/html/html_unescape.h: $(SRCDIR)/html/html_unescape.gperf + gperf -L ANSI-C -I -t -N find_entity -H hash_entity -K entity -C -l \ + --null-strings -m5 $< > $@ + +# We include case_fold_switch.inc in the repository, so this shouldn't +# normally need to be generated. $(SRCDIR)/case_fold_switch.inc: $(DATADIR)/CaseFolding-3.2.0.txt perl mkcasefold.pl < $< > $@ |