Debian Codegraph @

datfiles/off/Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1
2 OCOOKIES_UNROTATED=drugs misandry privates sex astrology ethnic \
3 miscellaneous racism songs-poems black-humor hphobia misogyny \
4 religion vulgarity definitions limerick politics riddles zippy \
5 cookie fortunes linux art atheism debian
6
7 OCOOKIES_ROTATED=
8
9 OCOOKIES=$(OCOOKIES_UNROTATED) $(OCOOKIES_ROTATED)
10
11 STRFILE=../../util/strfile
12 ROT=../../util/rot
13
14
15 all: ocookies-stamp
16
17 ocookies-stamp: rotated-stamp
18 rm -f *.dat
19 for i in $(OCOOKIES) ; do $(STRFILE) -x $$i || exit $$? ; done
20 touch ocookies-stamp
21
22 rotated-stamp: recoded-stamp
23 for i in $(OCOOKIES_UNROTATED) ; \
24 do $(ROT) < unrotated/$$i > $$i || exit $$? ; ln -s $$i $$i.u8; done
25 touch rotated-stamp
26
27 recoded-stamp:
28 for i in $(OCOOKIES_UNROTATED) ; \
29 do \
30 if [ ! -f unrotated/$$i.old ]; then \
31 cp unrotated/$$i unrotated/$$i.old ; \
32 fi; \
33 recode latin1..u8 unrotated/$$i; \
34 done
35 touch recoded-stamp
36
37 install:
38 install -m 0755 -d $(OCOOKIEDIR)
39 for i in $(OCOOKIES) ; \
40 do install -m 0644 $$i $$i.dat $(OCOOKIEDIR) || exit $$? ; \
41 cp -d $$i.u8 $(OCOOKIEDIR) ; \
42 done
43
44 clean:
45 rm -f ocookies-stamp rotated-stamp recoded-stamp *.dat $(OCOOKIES_UNROTATED)
46 rm -f *u8
47 for i in $(OCOOKIES_UNROTATED) ; do \
48 if [ -f unrotated/$$i.old ] ; then \
49 mv unrotated/$$i.old unrotated/$$i; \
50 fi; \
51 done
52