TOP=.
SUBDIRS=genser lib lwp kernel clients

include rules

all:: subdirs readmes

subdirs:: $(DEPEND)

.depend: depend
	touch .depend

clobber:: clean
	find . \( -name .depend -o -name '*~' \) -print | xargs rm -f

clean::
	rm -f *~

readmes: README README.ps

README: README.mm
	groff -Tascii -mgm $< > $@ || rm -f $@

README.ps: README.mm
	groff -Tps -mgm $< > $@ || rm -f $@

include rules.sub
