XCOMM
XCOMM Imakefile for XmHTML
XCOMM
XCOMM (C)Copyright 1995-1997 Ripley Software Development
XCOMM All Rights Reserved
XCOMM
XCOMM This file is part of the XmHTML Widget Library.
XCOMM
XCOMM This library is free software; you can redistribute it and/or
XCOMM modify it under the terms of the GNU Library General Public
XCOMM License as published by the Free Software Foundation; either
XCOMM version 2 of the License, or (at your option) any later version.
XCOMM
XCOMM This library is distributed in the hope that it will be useful,
XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
XCOMM Library General Public License for more details.
XCOMM
XCOMM You should have received a copy of the GNU Library General Public
XCOMM License along with this library; if not, write to the Free
XCOMM Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XCOMM

XCOMM Include the XmHTML configuration file
#include "XmHTML.cf"

XCOMM If you don't want to build the examples, remove it from the SUBDIRS
XCOMM line below. Likewise for the tools directory. If you want to build
XCOMM the XmHTML tutorial examples, add the book directory.

SUBDIRS = src examples tools

XCOMM 
XCOMM No need to change anything below this line
XCOMM

#define IHaveSubdirs

#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

XCOMM
XCOMM Seperate rules for building a dir from the toplevel directory
XCOMM

XCOMM the XmHTML library
NamedMakeSubdirs(lib,src)

XCOMM the examples directory. Depends on libXmHTML
NamedMakeSubdirs(examples,src examples)

XCOMM everything in tools
NamedMakeSubdirs(tools,tools)

XCOMM everything in book. Depends on libXmHTML
NamedMakeSubdirs(book,src book)

XCOMM
XCOMM Special rules for creating a distribution with the barebone makefiles
XCOMM
#if (ProjectX > 5)
distclean:: 
	@( for dir in $(SUBDIRS) ; do \ @@\
		(set -x ; cd $$dir ; $(MAKE) distclean $(pass_flags) ) ; \ @@\
	done) @@\
	$(RM) core *.out make.world *.bak *.last *.auto stamp-includes @@\
	$(CP) Makefile.org Makefile
#else
distclean:: 
	@( for dir in $(SUBDIRS) ; do \
		(set -x ; cd $$dir ; $(MAKE) distclean $(pass_flags) ) ; \
	done)
	$(RM) core *.out make.world *.bak *.last *.auto stamp-includes
	$(CP) Makefile.org Makefile
#endif

dist:: distclean
	$(LN) . XmHTML-$(ARCHIVE)
	tar cvf - XmHTML-$(ARCHIVE)Concat(/,*) | gzip -c > XmHTML-$(ARCHIVE).tar.gz


