forked from htacg/tidy-html5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 769 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
HTML2MARKDOWN=html2text
GIT=git
GITFLAGS=
DOXYGEN=doxygen
DOXYGENFLAGS=
.PHONEY: api-docs
all: bin/tidy
bin/tidy:
$(MAKE) -C build/gmake
$(MAKE) -C build/gmake doc
.FORCE:
# dummy target to force other targets to always get remade
README.md: README.html .FORCE
$(HTML2MARKDOWN) $(HTML2MARKDOWNFLAGS) $< > $@
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
install:
sudo $(MAKE) install -C build/gmake
version: all src/version.h README.md quickref.html
clean:
$(MAKE) clean -C build/gmake
$(RM) test/testall.log
$(RM) -r test/tmp