# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

#  -------------------------------------------------------------------------
#  Makefile generated from "Imake.tmpl"  and <Imakefile>
#  $Header: /home/x_cvs/mit/config/Imake.tmpl,v 1.8 1993/01/08 10:11:36 dawes Exp $
#  $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
#
#  Platform-specific parameters may be set in the appropriate <vendor>.cf
#  configuration files.  Site-specific parameters should be set in the file
#  site.def.  Full rebuilds are recommended if any parameters are changed.
#
#  If your C preprocessor does not define any unique symbols, you will need
#  to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
#  "make World" the first time).
#

#  -------------------------------------------------------------------------
#  site-specific configuration parameters that need to come before
#  the platform-specific parameters - edit site.def to change

#  $Header: /home/x_cvs/mit/config/site.def,v 1.52 1993/02/08 22:11:12 dawes Exp $
#  site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

#  -------------------------------------------------------------------------
#  platform-specific configuration parameters - edit x386.cf  to change

#  $Header: /home/x_cvs/mit/config/x386.cf,v 1.59 1993/02/08 22:11:15 dawes Exp $
#  platform:  $XConsortium: x386.cf,v 1.7 91/08/16 19:30:10 gildea Exp $

#  $Header: /home/x_cvs/mit/config/sv3Lib.rules,v 1.1 1993/01/22 12:24:42 dawes Exp $

     RMDSDEMACCMD = cat
   COMPRESSMANCMD = @true

#  operating system:  OSName 	"Mark Williams Company"

#  -------------------------------------------------------------------------
#  site-specific configuration parameters that go after
#  the platform-specific parameters - edit site.def to change

#  $Header: /home/x_cvs/mit/config/site.def,v 1.52 1993/02/08 22:11:12 dawes Exp $
#  site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

.NOEXPORT:

            SHELL = 	/bin/sh

              TOP = .
      CURRENT_DIR = .

               AR = ar clq
  BOOTSTRAPCFLAGS = 	-DCOHERENT  	-DSYSV -DSYSV386 -DUSG
               CC = cc
               AS = as

         COMPRESS = compress
              CPP = /lib/cpp  $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc  -E  $(STD_CPP_DEFINES)
          INSTALL = $(BINDIR)/bsdinst
               LD = ld
             LINT = lint
      LINTLIBFLAG = -o
         LINTOPTS = -ax
               LN = ln
             MAKE = make
               MV = mv
               CP = cp

           RANLIB = ranlib
  RANLIBINSTFLAGS =

               RM = rm -f
            TROFF = psroff
         MSMACROS = -ms
              TBL = tbl
              EQN = eqn
     STD_INCLUDES =
  STD_CPP_DEFINES = -traditional 		-DCOHERENT  	-DSYSV -DSYSV386 -DUSG
      STD_DEFINES = 		-DCOHERENT  	-DSYSV -DSYSV386 -DUSG
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES = 	$(XBSDLIB)
             TAGS = ctags

           MFLAGS = -$(MAKEFLAGS)

    PROTO_DEFINES =

     INSTPGMFLAGS = -s

     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -m 4755
     INSTLIBFLAGS = -m 0644
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -m 4755

      PROJECTROOT = /usr/X11

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O
        CCOPTIONS =
    ANSICCOPTIONS =

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
           CFLAGS = $(ANSICCOPTIONS) $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)

           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

        LDOPTIONS = $(ANSICCOPTIONS) $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)

   LDCOMBINEFLAGS = 	-r
      DEPENDFLAGS =

        MACROFILE = x386.cf
           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules 			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def 			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)

#  -------------------------------------------------------------------------
#  $Header: /home/x_cvs/mit/config/Project.tmpl,v 1.10 1993/02/06 05:14:49 dawes Exp $
#  X Window System Build Parameters
#  $XConsortium: Project.tmpl,v 1.138.1.1 92/11/11 09:49:19 rws Exp $

#  -------------------------------------------------------------------------
#  X Window System make variables; this need to be coordinated with rules

          PATHSEP = /
        USRLIBDIR = /usr/X11/lib
           BINDIR = /usr/X11/bin
          INCROOT = /usr/X11/include
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = /usr/X11/lib
        CONFIGDIR = /usr/X11/lib/config
       LINTLIBDIR = $(USRLIBDIR)/lint

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = /usr/X11/lib/xdm
           TWMDIR = $(LIBDIR)/twm
          MANPATH = /usr/X11/man
    MANSOURCEPATH = $(MANPATH)/man
        MANSUFFIX = 1x
     LIBMANSUFFIX = 3x
           MANDIR = 	$(MANSOURCEPATH)1
        LIBMANDIR = $(MANSOURCEPATH)3
           NLSDIR = $(LIBDIR)/nls
        PEXAPIDIR = /usr/X11/lib/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t
       LINKKITDIR = 	$(USRLIBDIR)/Server

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = imake
           DEPEND = makedepend
              RGB = rgb

            FONTC = bdftopcf

        MKFONTDIR = mkfontdir
        MKDIRHIER = 	/bin/sh  $(BINDIR)/mkdirhier

        CONFIGSRC = $(TOP)/config
       DOCUTILSRC = $(TOP)/doc/util
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/server
          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
       EXAMPLESRC = $(TOP)/examples
       CONTRIBSRC = $(TOP)/../contrib
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/rgb
        DEPENDSRC = $(UTILSRC)/makedepend
         IMAKESRC = $(CONFIGSRC)
         XAUTHSRC = $(LIBSRC)/Xau
          XLIBSRC = $(LIBSRC)/X
           XMUSRC = $(LIBSRC)/Xmu
       TOOLKITSRC = $(LIBSRC)/Xt
       AWIDGETSRC = $(LIBSRC)/Xaw
       OLDXLIBSRC = $(LIBSRC)/oldX
      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
      BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
      BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
     MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
         FSLIBSRC = $(FONTSRC)/lib/fs
    FONTSERVERSRC = $(FONTSRC)/server
     EXTENSIONSRC = $(TOP)/extensions
         XILIBSRC = $(EXTENSIONSRC)/lib/xinput
        PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
      PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX

#  $Header: /home/x_cvs/mit/config/sv3Lib.tmpl,v 1.1 1993/01/22 12:24:43 dawes Exp $

     SHLIBLDFLAGS = -q
         PICFLAGS =

  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
     EXTENSIONLIB =  			 -lXext

          DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
             XLIB = $(EXTENSIONLIB)  			 -lX11

      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
         XAUTHLIB =  			 -lXau
      DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
         XDMCPLIB =  			 -lXdmcp

        DEPXMULIB = $(USRLIBDIR)/libXmu.a
           XMULIB =  			 -lXmu

       DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
          OLDXLIB =  			 -loldX

      DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
         XTOOLLIB =  			 -lXt

        DEPXAWLIB = $(USRLIBDIR)/libXaw.a
           XAWLIB =  			 -lXaw

        DEPXILIB = $(USRLIBDIR)/libXi.a
           XILIB =  			 -lXi

       DEPPEXLIB = $(USRLIBDIR)/libPEX5.a
          PEXLIB =  			 -lPEX5

        DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
           PHIGSLIB =  			 -lphigs

       DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
          XBSDLIB =  			 -lXbsd

 LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
         LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
          LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
        LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
          LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
           LINTXI = $(LINTLIBDIR)/llib-lXi.ln
          LINTPEX = $(LINTLIBDIR)/llib-lPEX5.ln
        LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln

          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)

         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)

#  -------------------------------------------------------------------------
#  Imake rules for building libraries, programs, scripts, and data files
#  $Header: /home/x_cvs/mit/config/Imake.rules,v 1.8 1993/02/03 13:01:58 dawes Exp $
#  rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $

#  -------------------------------------------------------------------------
#  start of Imakefile

#  X Desktop Manager version 2.5
#  =============================
#
#  XDTM has four operating system dependent flags which should be added
#  to XDTMOPTIONS:
#
#  HAS_STRSTR        This flag should be enabled on systems which
#                    have the strstr(3) string function. If it is
#                    not enabled xdtm will supply a replacement.
#
#  USE_CWD           If your system has the getcwd(3) library routine
#                    then define this flag, otherwise the getwd(3)
#                    will be used.
#
#  TRUE_SYSV         If your system does NOT have any BSD extensions
#                    like sockets and symbolic links then define
#                    this flag.
#
#  ECHO_N            If the echo(1) program on your machine uses the
#                    '-n' flag to specify that a newline should NOT
#                    be printed after the string then define this
#                    flag. If your echo(1) program supports the '\c'
#                    notation then do NOT define this flag.
#                    If your not sure enter '/bin/echo -n hello' if
#                    the '-n' is printed then do not define this flag.
#
#  USE_TERMIOS       If Posix termios should be used instead of SysVish
#                    termio.
#
#  If make fails with a syntax error try expanding any tabs in this
#  file to spaces. (use the expand(1) utility)

      XPM_DEFINES = -DXPM
     XPM_INCLUDES = -I/usr/include/X11
          XPM_LIB = -lXpm

     LEX_LIBRARY = -L/u1/gnu/lib -lfl
             LEX = flex
          LFLAGS = -f -t

            YACC = bison
          YFLAGS = -y -d

XDTMDIR=$(LIBDIR)/xdtm

	XDTMOPTIONS = -DHAS_STRSTR -DUSE_CWD -DTRUE_SYSV -DECHO_N
     EXTRA_LIBRARIES = -lXbsd -lmisc

#  Put the name of your C compiler in here, I find gcc best but xdtm
#  will now compile with non-ANSI (K&R) compilers (usually cc).
#
#  If using the A/UX cc add -B /usr/lib/big/ to use the compiler
#  with the large symbol table.

       DEFINES = $(XPM_DEFINES) $(XDTMOPTIONS)   -DSYSTEM_LIB_DIR=\"$(XDTMDIR)\"
  STD_INCLUDES = -I. -I.. $(XPM_INCLUDES)

            SRCS = main.c menus.c appman.c dirman.c                    fileman.c parse.c Ext/termwindow.c Ext/iconman.c                    Xedw/XedwList.c Xedw/XedwForm.c lexical.l parser.y                    scroll_hack.c mystrstr.c buttons.c                    display.c listoption.c map.c newfile.c                    quit.c doubleclick.c dialogs.c locicon.c

            OBJS = appman.o                    buttons.o                    dialogs.o                    display.o                    dirman.o                    doubleclick.o                    fileman.o                    listoption.o                    map.o                    main.o                    menus.o                    mystrstr.o                    newfile.o                    parse.o                    parser.o                    lexical.o                    quit.o                    scroll_hack.o                    locicon.o

         DEPLIBS = Ext Xedw regexp

 LOCAL_LIBRARIES = -LExt -lExt -Lregexp -lregexp -LXedw -lXedw
   SYS_LIBRARIES = $(XPM_LIB) $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(LEX_LIBRARY) -lm

         SUBDIRS = Ext Xedw regexp

#  Make xdtm
all:: Message xdtm

 PROGRAM = xdtm

all:: xdtm

xdtm: $(OBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)

install:: xdtm
	 @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
	$(INSTALL) -c $(INSTPGMFLAGS)   xdtm $(DESTDIR)$(BINDIR)

install.man:: xdtm.man
	$(RM) $(MANDIR)/xdtm.1x *
	$(RMDSDEMACCMD) xdtm.man | neqn | nroff -man >/tmp/xdtm.man
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/xdtm.man $(MANDIR)/xdtm.1x
	-$(COMPRESSMANCMD) $(MANDIR)/xdtm.1x
	$(RM) /tmp/xdtm.man

depend::
	$(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)

clean::
	$(RM) $(PROGRAM)

#  Make the lexical analyzer as a seperate program for debugging.

lexical:  lexical.c
	$(RM) $@
	$(CC) -o $@  lexical.c $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) -DDEBUG_LEX $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) lexical

#  Make the parser as a seperate program for debugging

parser:  lexical.c parser.c
	$(RM) $@
	$(CC) -o $@  lexical.c parser.c $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) -DDEBUG_YACC $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) parser

Ext::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in  Ext ;\
	do \
	(cd $$i ; echo "making" Ext "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)'  all); \
	done

Xedw::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in  Xedw ;\
	do \
	(cd $$i ; echo "making" Xedw "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)'  all); \
	done

regexp::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in  regexp ;\
	do \
	(cd $$i ; echo "making" regexp "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)'  all); \
	done

#  Insert the icon directory into the system xdtmrc, keep the original
#  in xdtmrc.orig, which is moved back to xdtmrc after the modified
#  xdtmrc has been installed.

install::
	$(MV) xdtmrc xdtmrc.orig
	sed -e 's^\"{icon dir}\"^\"$(XDTMDIR)/icons\"^' xdtmrc.orig > xdtmrc
	sed -e 's^iconfile^$(XDTMDIR)/new_xdtm.xbm^' Xdtm.ad.tmpl > Xdtm.ad

#  Install the xdtm execute script file, used to prevent xterms closing
#  when the inferier process dies.

install:: xdtm.sh
	 @if [ -d $(DESTDIR) $(BINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR) $(BINDIR)); fi
	$(INSTALL) -c $(INSTPGMFLAGS)   xdtm.sh $(DESTDIR) $(BINDIR)

#  Install the helpfile, system xdtmrc, icon bitmaps and the default
#  application defaults.

install::
	@case '${MFLAGS}' in *[i]*) set +e;; esac;
	 @for i in  $(XDTMDIR); do if [ -d $(DESTDIR)$$i ]; then \
	set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi \
	done

install:: help
	$(INSTALL) -c $(INSTDATFLAGS) help $(DESTDIR) $(XDTMDIR)

install:: perm.help
	$(INSTALL) -c $(INSTDATFLAGS) perm.help $(DESTDIR) $(XDTMDIR)

install:: xdtmrc
	$(INSTALL) -c $(INSTDATFLAGS) xdtmrc $(DESTDIR) $(XDTMDIR)

install:: bitmaps/new_xdtm.xbm
	$(INSTALL) -c $(INSTDATFLAGS) bitmaps/new_xdtm.xbm $(DESTDIR) $(XDTMDIR)

install::
	@case '${MFLAGS}' in *[i]*) set +e;; esac;
	 @for i in  $(XDTMDIR)/icons; do if [ -d $(DESTDIR)$$i ]; then \
	set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi \
	done

install:: Xdtm.ad
	 @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
	$(INSTALL) -c $(INSTAPPFLAGS) Xdtm.ad $(DESTDIR)$(XAPPLOADDIR)/Xdtm

install::
	/bin/mkdir -p $(XDTMDIR)/icons
	$(CP) icons$(PATHSEP)*$(PATHSEP)*.icon $(XDTMDIR)/icons
	$(RM) xdtmrc
	$(MV) xdtmrc.orig xdtmrc
	chmod -R a+r $(XDTMDIR)

#  Make the emacs TAGS file

etags:
	etags -t *.h $(SRCS)

clean::
	$(RM) lexical.c parser.c parser.h xdtmrc.new *.tab.*

parser.c parser.h: parser.y
	$(YACC) $(YFLAGS) parser.y
	$(MV) y.tab.c parser.c
	$(MV) y.tab.h parser.h

lexical.c: parser.h lexical.l
	$(LEX) $(LFLAGS) lexical.l > lexical.c

lexical.o: parser.h

tar: clean
	(cd ..;tar chf - -I ./xdtm/xdtm.MANIFEST  | gzip > xdtm-2.5.2.tar.gz)

Message:
	@( 	echo "********************************************************"; 	echo "*        Compiling the X Desktop Manager V2.5          *"; 	echo "*                                                      *"; 	echo "*   Have you configured the master Imakefile in this   *"; 	echo "*            directory for this machine?               *"; 	echo "*                                                      *"; 	echo "*   Have you made the Makefiles in Xedw and regexp?    *"; 	echo "*           if not type 'make Makefiles'               *"; 	echo "*                                                      *"; 	echo "* Available targets: xdtm          (default)           *"; 	echo "*                    install     - install xdtm        *"; 	echo "*                    install.man - install man page    *"; 	echo "*                    etags       - Make emacs tags     *"; 	echo "*                    clean       - Clean directory     *"; 	echo "*                    tar         - Archive xdtm        *"; 	echo "********************************************************"; 	echo ""; 	)

#  -------------------------------------------------------------------------
#  common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) "#"*

Makefile::
	-@if [ -f Makefile ]; then set -x; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

#  -------------------------------------------------------------------------
#  rules for building in SUBDIRS - do not edit

install::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
	done

install.man::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \
	done

install.linkkit::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo "installing link kit" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.linkkit); \
	done

clean::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \
	done

tags::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \
	done

Makefiles::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \
	case "$$i" in \
	./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
	./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
	./?*/?*)    newtop=../../ sub=subsub;; \
	./?*)       newtop=../ sub=sub;; \
	*/?*/?*/?*)    newtop=../../../../ sub=subsubsubsub;; \
	*/?*/?*)    newtop=../../../ sub=subsubsub;; \
	*/?*)       newtop=../../ sub=subsub;; \
	*)	    newtop=../ sub=sub;; \
	esac; \
	case "$(TOP)" in \
	/?*) newtop=  upprefix=  ;; \
	*) upprefix=../ ;; \
	esac; \
	$(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \
	MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\
	done

subdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

subsubdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

subsubsubdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

subsubsubsubdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

includes::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
	(cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS)   includes); \
	done

#  -------------------------------------------------------------------------
#  dependencies generated by makedepend

