summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6b232ce1665252e8984b74c1a4b6aa8d121d0b67 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Release process:
#  1. Add a news entry in news-entries (see news/entries/README)
#  2. Updated the documentation ('make web' in the gnutls source)
#  3. Type 'make'
#  4. Type 'make tweet'

WML=wml
WMLFLAGS=-DTABLE_BGCOLOR="\#e5e5e5" -DTABLE_HDCOLOR="\#ccbcbc" \
	-DTABLE_BGCOLOR2="\#e0d7d7" -DWHITE="\#ffffff" -DEMAIL=\"bugs@gnutls.org\" \
	-DSTABLE_VER="3.4" -DSTABLE_OLD_VER="3.3" -DSTABLE_ABI="3.4.0" -DSTABLE_OLD_ABI="3.0.0" \
	-DSTABLE_NEXT_VER="3.5" -DSTABLE_NEXT_ABI="3.5.0" 

COMMON=common.wml bottom.wml head.wml rawnews.wml
OUTPUT=index.html contrib.html devel.html support.html	\
 download.html gnutls-logo.html news.html future.html	\
 documentation.html help.html openpgp.html \
 security.html commercial.html soc.html faq.html \
 comparison.html admin/bugs.html manual/index.html css/layout.css

all: $(OUTPUT) news.atom
	@for i in news-entries/*.xml;do X=0; if ! test -e $$i.tweet;then X=1;fi;done;if test "$$X" = "1";then echo "There are unsubmitted news. Use 'make tweet'.";fi

release: all
	cd abi-tracker && perl ../../abi-monitor/abi-monitor.pl -get --limit=2 gnutls.json
	cd abi-tracker && perl ../../abi-monitor/abi-monitor.pl -build --limit=2 gnutls.json
	cd abi-tracker && abi-tracker -build gnutls.json

.PHONY: clean manual/index.html tweet security.html

manual/index.html: manual/index.html.bak
	@cp -f manual/index.html.bak $@

NEWS_FILES=$(shell ls news-entries/*.xml)

news.atom: $(NEWS_FILES) scripts/atom.pl
	perl scripts/atom.pl >$@

tweet: $(NEWS_FILES)
	perl scripts/tweet.pl

security.html: security.wml rawsecurity.wml $(COMMON)
	$(WML) $(WMLFLAGS) $< > $@.tmp
	mv $@.tmp $@

news.html: news.wml $(COMMON) $(NEWS_FILES)
	$(WML) $(WMLFLAGS) $< > $@.tmp
	mv $@.tmp $@

index.html: gnutls.wml $(COMMON) $(NEWS_FILES)
	$(WML) $(WMLFLAGS) $< > $@.tmp
	mv $@.tmp $@

%.html: %.wml $(COMMON)
	$(WML) $(WMLFLAGS) $< > $@.tmp
	mv $@.tmp $@

%.css: %.cwml $(COMMON)
	$(WML) $(WMLFLAGS) $< > $@.tmp
	mv $@.tmp $@

clean:
	rm -f *~ $(OUTPUT)