#
include $(TOP)/config.mk

MAN1	= 
MAN5	= 
MAN8	= exportfs nfsstat
MAN9	= 

all dep install::
	@echo "Done."

clean distclean::
	rm -f *.ps

# isn't GNU make a wonderful thing?
SETVAR	= ext=$(MAN$sEXT); dir=$(MAN$sDIR); pgs="$(MAN$s)"
MANLOOP= $(SETVAR); for man in $$pgs; do eval $$cmd; done
MICMD	= rm -f \$$dir/\$$man.\$$ext; \
	  echo $(INSTALLMAN) \$$man.man \$$dir/\$$man.\$$ext; \
	  $(INSTALLMAN) \$$man.man \$$dir/\$$man.\$$ext
PSCMD	= echo \"groff -Tps -man \$$man.man > \$$man.ps\"; \
	  groff -Tps -man \$$man.man > \$$man.ps

installman::
	@$(foreach s, 1 5 8 9, cmd="$(MICMD)" $(MANLOOP);)

postscript::
	@$(foreach s, 1 5 8 9, cmd="$(PSCMD)" $(MANLOOP);)

ifeq (.depend,$(wildcard .depend))
include .depend
endif
