blob: 9d4306cb60391a7a1a2305c1e082d56315e47b20 (
plain) (
blame)
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
|
# to be executed on dillon.debian.org
MD=/usr/bin/markdown_py
SOURCES=security_tracker glossary index contact dsa_release organization tasks tips
HTMLS=$(patsubst %,$(DEST)/%.html,$(SOURCES))
EXTENSIONS=tables def_list toc
export DEST=$(CURDIR)
all: $(HTMLS)
$(DEST)/%.html: %
(cat header; /usr/bin/markdown_py $< $(addprefix -x ,$(EXTENSIONS)) ) > $@
.PHONY: clean all rebuild publish
clean:
rm $(HTMLS)
rebuild: clean all
ifeq "$(shell hostname) $(shell whoami)" "dillon security"
publish: $(HTMLS)
mv $(HTMLS) /srv/security-team.debian.org/htdocs
static-update-component security-team.debian.org
else
$(warning you are not in dillon or you are not security user)
endif
|