d/rules: don't build the doc, as there's none to build.
Louis-Philippe Véronneau
2 years ago
1 | 1 |
|
2 | 2 |
* Team upload.
|
3 | 3 |
* New upstream release.
|
|
4 |
* d/rules: don't build the doc, as there's none to build.
|
4 | 5 |
|
5 | 6 |
-- Louis-Philippe Véronneau <pollo@debian.org> Mon, 14 Dec 2020 11:13:44 -0500
|
6 | 7 |
|
6 | 6 |
debhelper (>= 10),
|
7 | 7 |
default-jdk,
|
8 | 8 |
javahelper (>= 0.32),
|
9 | |
markdown,
|
10 | 9 |
maven-repo-helper (>= 1.5~)
|
11 | 10 |
Standards-Version: 4.0.0
|
12 | 11 |
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/java-classpath-clojure.git
|
1 | 1 |
|
2 | 2 |
include /usr/share/javahelper/java-vars.mk
|
3 | 3 |
include /usr/share/dpkg/pkg-info.mk
|
4 | |
|
5 | |
MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
|
6 | 4 |
|
7 | 5 |
export CLASSPATH=/usr/share/java/clojure.jar
|
8 | 6 |
|
|
11 | 9 |
%:
|
12 | 10 |
dh $@ --with javahelper --with maven_repo_helper
|
13 | 11 |
|
14 | |
override_jh_build: $(MDWN_DOCS)
|
|
12 |
override_jh_build:
|
15 | 13 |
jar cf $(PRODUCED_JAR) -C src/main/clojure .
|
16 | |
mkdir -p $(CURDIR)/doc/html && mv $^ $(CURDIR)/doc/html
|
17 | 14 |
|
18 | 15 |
override_jh_clean:
|
19 | 16 |
jh_clean
|
20 | 17 |
rm -f $(CURDIR)/$(PRODUCED_JAR)
|
21 | |
rm -rf $(CURDIR)/doc
|
22 | |
|
23 | |
get-orig-source:
|
24 | |
uscan --download-version $(DEB_VERSION_UPSTREAM) --force-download --rename
|
25 | |
|
26 | |
%.html:%.md
|
27 | |
@echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' \
|
28 | |
'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' > $@
|
29 | |
@echo "<html>" >> $@
|
30 | |
@echo "<head>" >> $@
|
31 | |
@echo "<title>$(shell head -n 1 $< | sed 's/^#*\s*//')</title>" >> $@
|
32 | |
@echo "</head>" >> $@
|
33 | |
@echo "<body>" >> $@
|
34 | |
markdown $< >> $@
|
35 | |
@echo "</body>" >> $@
|
36 | |
@echo "</html>" >> $@
|