Another OLD Makefile update
This commit is contained in:
parent
3d6f092684
commit
06871fa96b
27
Makefile
27
Makefile
|
@ -1,16 +1,37 @@
|
||||||
HTML2MARKDOWN=html2text
|
HTML2MARKDOWN=html2text
|
||||||
|
GIT=git
|
||||||
|
GITFLAGS=
|
||||||
|
DOXYGEN=doxygen
|
||||||
|
DOXYGENFLAGS=
|
||||||
|
|
||||||
all: bin/tidy README.md
|
.PHONEY: api-docs
|
||||||
|
all: bin/tidy
|
||||||
|
|
||||||
bin/tidy:
|
bin/tidy:
|
||||||
$(MAKE) -C build/gmake
|
$(MAKE) -C build/gmake
|
||||||
|
$(MAKE) -C build/gmake doc
|
||||||
|
|
||||||
README.md: README.html
|
.FORCE:
|
||||||
|
# dummy target to force other targets to always get remade
|
||||||
|
|
||||||
|
README.md: README.html .FORCE
|
||||||
$(HTML2MARKDOWN) $(HTML2MARKDOWNFLAGS) $< > $@
|
$(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:
|
install:
|
||||||
sudo $(MAKE) install -C build/gmake
|
sudo $(MAKE) install -C build/gmake
|
||||||
|
|
||||||
|
version: all src/version.h README.md quickref.html
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) clean -C build/gmake
|
$(MAKE) clean -C build/gmake
|
||||||
$(RM) README.md
|
$(RM) test/testall.log
|
||||||
|
$(RM) -r test/tmp
|
||||||
|
|
Loading…
Reference in a new issue