# Generated automatically from Makefile.in by configure.
###########################################################################
#
# File:        Makefile.in
# Revision:    1.3
# Last Mod:    11:25:38, 15 Aug 1995
# Created:     94/06/18
#
###########################################################################

#### Start of system configuration section. ####

srcdir = .

CC = gcc

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = $(INSTALL) -m 0555
INSTALL_DATA = $(INSTALL) -m 0644

# Standard definition (a'la GNU)
prefix = ${DESTDIR}/opt/Modules/
exec_prefix = ${DESTDIR}/opt/Modules/
man_prefix = /opt/Modules/

# Directory in which to install man pages
mandir = ${DESTDIR}/usr/share/man
man1dir = $(mandir)/man1
man4dir = $(mandir)/man4

SHELL = /bin/sh

#### End of system configuration section. ####

MAN_FILES= module.1 modulefile.4

MAKEDIRS=  $(man1dir) $(man4dir)

all:

install: all install-dirs
	$(INSTALL_DATA) module.1     $(man1dir)
	$(INSTALL_DATA) modulefile.4 $(man4dir)

install-dirs:
	@for i in $(MAKEDIRS) ; do \
		echo Making $$i... ; \
		parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
		if [ -d $$parent ] ; then true ; else mkdir -p $$parent ; fi ; \
		if [ ! -d $$i ] ; then \
			if mkdir $$i ; then \
				true ; \
			else \
				exit 1 ; \
			fi ; \
		else \
			true ; \
		fi ; \
	done

clean:

mostlyclean: clean

distclean:	clean
	rm -f module.1 modulefile.4

realclean:	distclean
