tidy-html5/Makefile

38 lines
778 B
Makefile
Raw Normal View History

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: bin/tidy
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
2012-03-01 14:00:01 +00:00
.FORCE:
# dummy target to force other targets to always get remade
README.md: README.html .FORCE
2011-11-17 03:16:11 +00:00
$(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-02-28 16:36:29 +00:00
quickref.html: htmldoc/quickref.html .FORCE
2012-03-01 08:54:20 +00:00
cp $< $@
api-docs:
$(DOXYGEN) $(DOXYGENFLAGS) htmldoc/doxygen.cfg
2011-11-20 10:42:28 +00:00
install:
sudo $(MAKE) install -C build/gmake
version: all src/version.h README.md quickref.html api-docs
2012-03-01 09:17:51 +00:00
2011-11-17 03:16:11 +00:00
clean:
2011-11-20 10:42:28 +00:00
$(MAKE) clean -C build/gmake
2012-03-01 08:54:20 +00:00
$(RM) test/testall.log
$(RM) -r test/tmp