# New top-level Makefile
# for the fortune(6)
# ported from BSD sources by Fazal Majid, 1992

# set the optimization options here
OPTS = -O6
#OPTS = -O6 -m486
# set the directory where the executables will be installed here
BINDESTDIR = /usr/games
# The strfile & unstr programs are for the system administrator only.
SYSDESTDIR = /usr/sbin
# set the directory for the data files here
DATDESTDIR = /usr/lib/games
# options for `install'
INSTALL = install -m 644

#
# the following should not need to be changed
#

SUBDIRS = fortune strfile unstr datfiles

all:
	if test ! -e $(DATDESTDIR); then mkdir $(DATDESTDIR); fi
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir all; done

install:
	if test ! -e $(DATDESTDIR); then mkdir $(DATDESTDIR); fi
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir install; done

clean: $(SUBDIRS)
	for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done

