-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·72 lines (53 loc) · 1.53 KB
/
Makefile
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
63
64
65
66
67
68
69
70
71
72
CC = gcc -Wall -ansi -pedantic
faqs = sao-faq saoa-faq
#pubdir = ~/public_html/faq
[email protected]:public_html/faq
[email protected]:public_html/faq
SCP = rsync -e ssh
TAR = tar
tarball = faq.tar.gz
sources = srand-virhe.c hetu.c
genfiles = $(faqs:=.txt) $(faqs:=.tov) $(faqs:=-html) \
changelog.html ChangeLog srand-virhe-esim srand-virhe
all : $(genfiles)
html : $(faqs:=-html)
%-esim : %
export LANG=C ; echo "% Generoitu `date`" > $@
export LANG=C ; echo "% koneella `uname -a`" >> $@
PATH=$$PATH:. $< >> $@
%.txt: %.sgml
debiandoc2text -l fi_FI $<
%.tov: %.sgml
debiandoc2textov -l fi_FI $<
%-html : %.sgml
debiandoc2html -l fi_FI $<
touch $@
changelog.html : $(faqs:=.sgml) Makefile
cvs2html -O $@
ChangeLog : $(faqs:=.sgml) Makefile names
cvs2cl -U names
clean :
rm -rf $(genfiles) $(faqs:=.html)
realclean : clean
rm *~
publish : all sources
set -e ; files="" ; for p in sgml txt tov ; \
do \
files="$$files sao-faq.$$p" ; \
files="$$files saoa-faq.$$p" ; \
done ; \
files="$$files ChangeLog changelog.html sao-faq.html saoa-faq.html" ; \
files="$$files srand-virhe-esim" ; \
$(SCP) -r $$files $(pubdir)
tarball : all
set -e ; files="" ; for p in sgml txt tov ; \
do \
files="$$files sao-faq.$$p" ; \
files="$$files saoa-faq.$$p" ; \
done ; \
files="$$files ChangeLog changelog.html sao-faq.html saoa-faq.html" ; \
files="$$files srand-virhe-esim" ; \
$(TAR) cvzf $(tarball) $$files
sources : all
$(SCP) $(sources) $(ftpdir)
.PHONY: all html