-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
51 lines (40 loc) · 1.1 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
PERL=perl
VCSUPDATE=git pull
CHECK_URLS=bin/check_urls.pl
TOC_PL=bin/perlfaq_toc.pl
SPLIT_DIR=faqs
FILES=perlfaq1.pod perlfaq2.pod perlfaq3.pod perlfaq4.pod perlfaq5.pod \
perlfaq6.pod perlfaq7.pod perlfaq8.pod perlfaq9.pod
TOC=perlfaq.toc
RUNPROVE=runprove
help:
@ echo "Available targets:"
@ echo
@ echo " checkurls -- extract and validate URLs in the perlfaq POD"
@ echo " perlfaq.pod -- create a new perlfaq.pod from the perlfaq POD"
@ echo " split -- split up the faq answers for usenet autoposter"
@ echo " test -- run each .pod file through Test::Pod"
@ echo
echo:
@ echo $(FILES)
perlfaq.pod: $(FILES) bin/perlfaq_toc.pl
${PERL} ${TOC_PL} > perlfaq.pod
checkurls:
${PERL} ${CHECK_URLS} $(FILES)
@ touch $@
split:
${VCSUPDATE}
${PERL} bin/splitfaq ${SPLIT_DIR} ${FILES}
rm -f ${SPLIT_DIR}/perlfaq.00.00.txt
bin/touch ${SPLIT_DIR}/*
splitquiet:
@ ${VCSUPDATE}
@ ${PERL} bin/splitfaq -q ${SPLIT_DIR} ${FILES}
@ rm -f ${SPLIT_DIR}/perlfaq.00.00.txt
@ bin/touch ${SPLIT_DIR}/*
test:
${PERL} t/pod.t
runtest:
${RUNPROVE} t/pod.t
sync:
cp ../perl/pod/perlfaq* .