# $Id$ include config.mk DIRS = ./Server ./Document ./Common DESTDIR = .PHONY: all install distclean clean $(DIRS) maintainer FLAGS = TOPDIR=.. DESTDIR=$(DESTDIR) @EXPORTS@ all: $(DIRS) ./Server:: ./Common $(MAKE) -C $@ $(FLAGS) ./Common ./Document:: $(MAKE) -C $@ $(FLAGS) maintainer: ./Maintainer/lint ./Maintainer/indent clean: for i in $(DIRS); do \ $(MAKE) -C $$i clean $(FLAGS) ; \ done distclean: for i in $(DIRS); do \ $(MAKE) -C $$i clean $(FLAGS) ; \ done rm -f config.h config.mk config.cache Makefile install: all mkdir -p $(DESTDIR)$(PREFIX)/etc for i in $(DIRS); do \ $(MAKE) -C $$i install $(FLAGS) ; \ done if [ ! -f $(DESTDIR)$(PREFIX)/etc/newsdist.conf ]; then cp example.conf $(DESTDIR)$(PREFIX)/etc/newsdist.conf ; else echo "example.conf not installed" ; fi