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 38 39 40 41 42
|
all: public/doc/index.html
include links.mk
links.mk: links
awk '{ print("LINKS +=", $$1); print($$1, ":"); print("\tmkdir -p $$(shell dirname ", $$1, ")"); print("\tln -sf", $$2, $$1)}' $^ > $@
all: $(LINKS)
.PHONY: spec check test
checkdeps:
@if which dpkg-checkbuilddeps >/dev/null; then dpkg-checkbuilddeps -d "$$(grep-dctrl -n -s Depends . debian/control | grep -v '\$$')"; fi
spec:
rspec --color
functional-tests:
test/runall.sh
check: all check-ui-and-docs spec functional-tests
check-ui-and-docs: all
test -d public/doc
test -f public/doc/index.html
test -L public/doc/js/jquery.js -a -f public/doc/js/jquery.js
test -L public/jquery.js -a -f public/jquery.js
test: check
public/doc/index.html public/doc/jq/jquery.js: README.md RUBYAPI.md HACKING.md $(shell find lib -name '*.rb')
$(RM) public/doc/js/jquery.js
yardoc --markup markdown --output-dir public/doc --main README.md lib - $^
ln -sf ../../jquery.js public/doc/js/jquery.js
.PHONY: tags
tags:
ctags -R --exclude=chroots --exclude='public/jquery*' --exclude=public/bootstrap .
clean:
$(RM) -rf $(generated) tags public/doc links.mk $(LINKS)
|