XCOMM #
XCOMM #  Copyright (C) 1992 by Gustaf Neumann, Stefan Nusser
XCOMM #
XCOMM #       Wirtschaftsuniversitaet Wien,
XCOMM #       Abteilung fuer Wirtschaftsinformatik
XCOMM #       Augasse 2-6,
XCOMM #       A-1090 Vienna, Austria
XCOMM #       neumann@wu-wien.ac.at, nusser@wu-wien.ac.at
XCOMM #
XCOMM #  Permission to use, copy, modify, and distribute this software and its
XCOMM #  documentation for any purpose and without fee is hereby granted, provided
XCOMM #  that the above copyright notice appears in all copies and that both that
XCOMM #  copyright notice and this permission notice appear in all supporting
XCOMM #  documentation.  This software is provided "as is" without expressed or
XCOMM #  implied warranty.
XCOMM #
XCOMM #  Date: Mon, Apr 13 1992
XCOMM #  Author: Gustaf Neumann
XCOMM #  Version: 0.9

XCOMM #define LOCAL

#define IHaveSubdirs
SUBDIRS = news mail ftp mc monitoring misc design

#ifdef LOCAL
Makefile::
	cat parms.local generic.tmpl > Wafe.tmpl
#else
Makefile::
	cat parms.global generic.tmpl > Wafe.tmpl
#endif
#include <Wafe.tmpl>



install::
	-@mkdir $(WAFELIB)
	cp wafe.config $(WAFELIB)/system.waferc
	-@mkdir $(WAFELIB)/bitmaps $(WAFELIB)/perl $(WAFELIB)/faces >/dev/null 2>&1

MakeSubdirs($(SUBDIRS))
installWafeBitmaps(wafe.xbm)

psman1(.,wafeapp)
psman1(../src,wafe)
XCOMM #  /* makeTeX(../src,wafedoc,tex)*/
NamedTargetSubdirs(man.ps,$(SUBDIRS),"making" man.ps, PassCDebugFlags,man.ps)

tar::
	/usr/lib/cpp < wafe.config.generic > wafe.config
	(cd ..; tar -zhcvf wafeapps.tar.gz  \
		apps/Imakefile \
			apps/generic.tmpl apps/parms.local apps/parms.global apps/Wafe.tmpl \
		        apps/wafe.xbm apps/wafe.config apps/wafeapp.man \
		apps/util/wafe.pl apps/util/wafe_mu.pl \
		apps/news/Imakefile apps/news/wafenews apps/news/xwafenews.man \
                        apps/news/nntp.pl \
			apps/news/wafegopher apps/news/xwafegopher.man \
			apps/news/search.xbm apps/news/telnet.xbm \
		apps/mail/Imakefile apps/mail/wafemail apps/mail/xwafemail.man \
			apps/mail/deleted.xbm apps/mail/unread.xbm apps/mail/read.xbm \
			apps/mail/faces/neumann.xpm apps/mail/faces/nusser.xpm \
			apps/mail/faces/alkier.xpm apps/mail/faces/unknown.xbm \
			apps/mail/faces/root.xbm apps/mail/faces/cray_machine.xbm \
		apps/ftp/Imakefile apps/ftp/xwafeftp.man \
			apps/ftp/ftp.pl apps/ftp/wafeftp apps/ftp/[a-z]*.xbm \
		apps/mc/Imakefile \
			apps/mc/wafemc apps/mc/xwafemc.man \
			apps/mc/[a-z]*.xbm apps/mc/test.mini.german apps/mc/test.mini.english \
		apps/monitoring/Imakefile \
			apps/monitoring/netstats apps/monitoring/xnetstats.man \
			apps/monitoring/vmstats apps/monitoring/xvmstats.man \
			apps/monitoring/iostats apps/monitoring/xiostats.man \
			apps/monitoring/ruptimes apps/monitoring/xruptimes.man \
			apps/monitoring/wafeping apps/monitoring/xwafeping.man \
			apps/monitoring/[a-z]*.xbm \
		apps/misc/Imakefile \
			apps/misc/projektor apps/misc/xprojektor.man \
			apps/misc/bm apps/misc/xbm.man \
			apps/misc/dirtree apps/misc/xdirtree.man \
			apps/misc/wafecf apps/misc/xwafecf.man apps/misc/bib-sample.db \
			apps/misc/wafetel apps/misc/xwafetel.man \
			apps/misc/wafeora apps/misc/xwafeora.man \
				apps/misc/ablage.sql apps/misc/paper.sql \
			apps/misc/arrdown.xbm apps/misc/arrup.xbm apps/misc/exit.xbm \
			apps/misc/wafebrett apps/misc/xwafebrett.man \
		apps/design/Imakefile \
			apps/design/wafedesign apps/design/xwafedesign.man \
			apps/design/plot.perl \
			apps/design/clock.perl \
			apps/design/clock.tcl \
		apps/lang/Imakefile \
			apps/lang/cprimfakt.c \
			apps/lang/primfakt.c \
			apps/lang/prim_fakt.pl \
			apps/lang/primfakt.prolog \
			apps/lang/primfakt.perl \
			apps/lang/primfakt.awk \
			apps/lang/xprimfakt.tcl \
			apps/lang/primfakt.a \
			apps/lang/perlwafe \
		apps/contrib/Imakefile \
			apps/contrib/we \
			apps/contrib/xwe.help \
			apps/contrib/wafe_pcmd.pl \
		apps/hardcopy \
	)
	/usr/lib/cpp -DWU < wafe.config.generic > wafe.config












