mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-23 01:10:27 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3559 e7d03fd6-7b0d-0410-9947-9c21f3af8025
25 lines
550 B
Makefile
25 lines
550 B
Makefile
RESTFILES = $(wildcard *.txt)
|
|
HTMLFILES = $(patsubst %.txt, %.html, $(RESTFILES) )
|
|
NAVFILES = $(patsubst %.txt, %.nav, $(RESTFILES) )
|
|
HTMLDIR := /home/calvin/public_html/linkchecker.sf.net
|
|
|
|
all: $(HTMLFILES)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(HTMLFILES) $(NAVFILES)
|
|
|
|
%.html: %.txt ../htmlnav.py ../bfknav.py lc.css
|
|
../rest2htmlnav --stylesheet-path=lc.css --time $< $@
|
|
|
|
.PHONY: nav
|
|
nav: all
|
|
python ../bfknav.py
|
|
|
|
.PHONY: homepage
|
|
homepage: nav
|
|
cp *.html *.css *.jpg *.png *.ico $(HTMLDIR)/htdocs
|
|
|
|
.PHONY: test
|
|
test: all
|
|
xmllint --valid --noout *.html
|