tidy-html5/Makefile

38 lines
769 B
Makefile
Raw Normal View History

2011-11-17 03:16:11 +00:00
HTML2MARKDOWN=html2text
2014-08-03 17:26:43 +00:00
GIT=git
GITFLAGS=
DOXYGEN=doxygen
DOXYGENFLAGS=
2011-11-17 03:16:11 +00:00
2014-08-03 17:26:43 +00:00
.PHONEY: api-docs
all: bin/tidy
2011-11-20 10:42:28 +00:00
bin/tidy:
$(MAKE) -C build/gmake
2014-08-03 17:26:43 +00:00
$(MAKE) -C build/gmake doc
2011-11-20 10:42:28 +00:00
2014-08-03 17:26:43 +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) $< > $@
2014-08-03 17:26:43 +00:00
src/version.h: .FORCE
$(GIT) $(GITFLAGS) log --pretty=format:'static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/%h";' -n 1 > $@
quickref.html: htmldoc/quickref.html .FORCE
cp $< $@
api-docs:
$(DOXYGEN) $(DOXYGENFLAGS) htmldoc/doxygen.cfg
2011-11-20 10:42:28 +00:00
install:
sudo $(MAKE) install -C build/gmake
2014-08-03 17:26:43 +00:00
version: all src/version.h README.md quickref.html
2011-11-17 03:16:11 +00:00
clean:
2011-11-20 10:42:28 +00:00
$(MAKE) clean -C build/gmake
2014-08-03 17:26:43 +00:00
$(RM) test/testall.log
$(RM) -r test/tmp