2011-11-17 03:16:11 +00:00
|
|
|
HTML2MARKDOWN=html2text
|
2012-02-28 16:36:29 +00:00
|
|
|
GIT=git
|
|
|
|
GITFLAGS=
|
2012-03-01 08:54:20 +00:00
|
|
|
DOXYGEN=doxygen
|
|
|
|
DOXYGENFLAGS=
|
2011-11-17 03:16:11 +00:00
|
|
|
|
2012-03-01 09:17:51 +00:00
|
|
|
.PHONEY: api-docs
|
|
|
|
all: README.md bin/tidy quickref.html
|
2011-11-20 10:42:28 +00:00
|
|
|
|
|
|
|
bin/tidy:
|
|
|
|
$(MAKE) -C build/gmake
|
2012-03-01 08:22:03 +00:00
|
|
|
$(MAKE) -C build/gmake doc
|
2011-11-20 10:42:28 +00:00
|
|
|
|
2011-11-17 03:16:11 +00:00
|
|
|
README.md: README.html
|
|
|
|
$(HTML2MARKDOWN) $(HTML2MARKDOWNFLAGS) $< > $@
|
|
|
|
|
2012-03-01 09:17:51 +00:00
|
|
|
src/version.h: .FORCE
|
2012-03-01 08:22:03 +00:00
|
|
|
$(GIT) $(GITFLAGS) log --pretty=format:'static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/%h";' -n 1 > $@
|
2012-03-01 09:17:51 +00:00
|
|
|
.FORCE:
|
|
|
|
# dummy target to force the src/version.h file to always get remade
|
2012-02-28 16:36:29 +00:00
|
|
|
|
2012-03-01 08:54:20 +00:00
|
|
|
quickref.html: htmldoc/quickref.html
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
api-docs:
|
|
|
|
$(DOXYGEN) $(DOXYGENFLAGS) htmldoc/doxygen.cfg
|
|
|
|
|
2011-11-20 10:42:28 +00:00
|
|
|
install:
|
|
|
|
sudo $(MAKE) install -C build/gmake
|
|
|
|
|
2012-03-01 09:17:51 +00:00
|
|
|
version: all src/version.h
|
|
|
|
|
2011-11-17 03:16:11 +00:00
|
|
|
clean:
|
2011-11-20 10:42:28 +00:00
|
|
|
$(MAKE) clean -C build/gmake
|
2011-11-17 03:16:11 +00:00
|
|
|
$(RM) README.md
|
2012-03-01 08:54:20 +00:00
|
|
|
$(RM) test/testall.log
|
|
|
|
$(RM) -r test/tmp
|