blob: 6d618a985041b2b36489b41c1dc4859da95ddf01 (
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
28
29
|
# to be executed on dillon.debian.org
MD=/usr/bin/markdown_py
SOURCES=security_tracker glossary index contact dsa_release organization tasks tips triage
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: $(HTMLS)
rm $(HTMLS)
rebuild: clean all
ifeq "$(shell hostname) $(shell whoami)" "dillon security"
publish: $(HTMLS)
mv $(HTMLS) /srv/security-team.debian.org/htdocs
cp style.css /srv/security-team.debian.org/htdocs
cp img/* /srv/security-team.debian.org/htdocs/img
static-update-component security-team.debian.org
else
$(warning you are not in dillon or you are not security user)
endif
|