#include "../../../../imakefile.tmpl"

BASEPAGESPATH   =units/cg252-502/examples/Xutilsrc
INSTALL_DIR	=$(HOMEPATH)/../Xutilbin

SUBDIRS = \
	xdpyinfo xfd xfontsel xlsatoms xlsclients xlsfonts xmag xprop xwininfo

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
CleanSubdirs($(SUBDIRS))
MakefileSubdirs($(SUBDIRS))


install:: 
	-@for d in ${SUBDIRS}; \
          do \
                (echo "	"Installing in $$d to $(INSTALL_DIR); \
                cd $$d; \
                ${MAKE} ; \
                ${MAKE} XAPPLOADDIR=$(INSTALL_DIR) INSTALL=$(BINDIR)/bsdinst \
                  INSTAPPFLAGS="-o $(OWNER)" INSTPGMFLAGS="-o $(OWNER)"  \
                  DESTDIR="" "BINDIR=$(INSTALL_DIR)" install ); \
          done
