3 COOKIES=art ascii-art computers cookie definitions drugs education ethnic \
4 food fortunes goedel humorists kids law linuxcookie literature \
5 love magic medicine men-women miscellaneous news people pets \
6 platitudes politics riddles science songs-poems sports \
7 startrek translate-me wisdom work linux perl knghtbrd \
10 STRFILE=../util/strfile
12 .PHONY: all cookies o-cookies w-cookies install clean
14 all: cookies o-cookies w-cookies
16 check: local-check o-check
19 for i in $(COOKIES) ; \
21 if ! sh $(TOP)/tests/scripts/check-fortune-file.sh "$$i" ; then \
27 cd off && $(MAKE) OCOOKIEDIR=$(OCOOKIEDIR) check
29 cookies: cookies-stamp
32 if [ $(OFFENSIVE) = 1 ] ; then \
33 cd off && $(MAKE) OCOOKIEDIR=$(OCOOKIEDIR) ; fi
36 if [ $(WEB) = 1 ] ; then \
37 cd html && $(MAKE) WCOOKIEDIR=$(WCOOKIEDIR); fi
41 for i in $(COOKIES) ; \
44 ln -sf $$i $$i.u8 || exit $? ; \
48 install: cookies-stamp
49 install -m 0755 -d $(COOKIEDIR)
50 if [ $(OFFENSIVE) = 1 ] ; then cd off && $(MAKE) install ; fi
51 if [ $(WEB) = 1 ] ; then cd html && $(MAKE) install ; fi
52 for i in $(COOKIES) ; do \
53 install -m 0644 $$i $$i.dat $(COOKIEDIR) || exit $? ; \
54 cp -d $$i.u8 $(COOKIEDIR) ; \
58 rm -f cookies-stamp *.dat
60 cd off && $(MAKE) clean
61 cd html && $(MAKE) clean