# Generated automatically from Makefile.in by configure.
# doc/Makefile.in	-*- Makefile -*-

# autoconf/Make.common.in	 -*- Makefile -*-
# release date (man), LSM date, version number/name, current maintainer
DATE="1 JANUARY 1998"
LSMDATE="01JAN98"
VERSION=2.4.5
VERNAME=rxvt-$(VERSION)#
MAINT=Oezguer Kesim <kesim@math.fu-berlin.de> Project Coordinator#
WEBPAGE=<http://babayaga.math.fu-berlin.de/~rxvt/>#
#-------------------------------------------------------------------------

SHELL = /bin/sh

# This variable makes it possible to move the installation root to another
# directory. This is useful when you're creating a binary distribution
# If empty, normal root will be used.
# You can run eg. 'make install DESTDIR=/packages/rxvt-xx' to accomplish
# that.
# DESTDIR = /usr/local/X11/$(VERNAME)

# Installation target directories & other installation stuff
prefix = /usr/X11R6
exec_prefix = ${prefix}
binprefix =
manprefix =
bindir = ${exec_prefix}/bin
mandir = ${prefix}/man/man1
manext = 1

# Tools & program stuff
CC = gcc
CPP = gcc -E
RM = /bin/rm
RMF = /bin/rm -f
CP = /bin/cp
SED = /bin/sed
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = /usr/bin/install -c -s -m 755
INSTALL_DATA = /usr/bin/install -c -m 644

# Flags & libs
# add -DBINDIR=\""$(bindir)/"\" to CPPFLAGS, if we need to spawn a program

CFLAGS = -O
CPPFLAGS =  
LDFLAGS = 
DEFS = -DHAVE_CONFIG_H
LIBS = 
DINCLUDE = 
DLIB = 

# X Include directory
XINC =  -I/usr/X11R6/include 

# extra libraries needed by X on some systems, X library location
XLIB =  -L/usr/X11R6/lib  -lSM -lICE  -L/usr/X11/lib -lXpm -lX11 -lXmu

# End of common section of the Makefile
#-------------------------------------------------------------------------

srcdir = .

basedir = ..
thisdir = doc

first_rule: all
dummy:

#
# Distribution variables
#

DIST_ETC = etc/rxvt.termcap etc/rxvt.terminfo etc/XTerm.ad
DIST_HTML = html/refer.html html/refer-frame.html html/refer-toc.html
DIST_MENU = menu/menu menu/example.menu menu/rxvt.menu menu/terminal.menu menu/jedmenu.sl
DIST =	Makefile.in README.greek README.menu README.xvt BUGS FAQ TODO\
	changes.txt rxvt.1.in LSM.in xterm.seq refer.txt

#-------------------------------------------------------------------------

all:	alldoc
lsm:	$(VERNAME).lsm
rxvt.html:	html/rxvt.html

# use multiple sed's, rather than splitting the script (SunOS again)

$(VERNAME).lsm: $(srcdir)/LSM.in
	cat $(srcdir)/LSM.in\
	|sed -e 's%@RXVT_VERSION@%$(VERSION)%g;'\
	|sed -e 's%@RXVT_LSMDATE@%$(LSMDATE)%g;'\
	|sed -e 's%@RXVT_MAINT@%$(MAINT)%g;'\
	|sed -e 's%@RXVT_WEBPAGE@%$(WEBPAGE)%g;'\
	> $@

rxvt.1: $(srcdir)/rxvt.1.in
	cat $(srcdir)/rxvt.1.in\
	|sed -e 's%@RXVT_VERSION@%$(VERSION)%g;'\
	|sed -e 's%@RXVT_DATE@%$(DATE)%g;'\
	|sed -e 's%@RXVT_MAINT@%$(MAINT)%g;' \
	|sed -e 's%@RXVT_WEBPAGE@%$(WEBPAGE)%g;'\
	> $@

html/rxvt.html: rxvt.1
	rman -f HTML -S -r off $<\
	|sed -e 's%&lt\;file:]*\(.*\)&gt\;%<A HREF="\1">\1</A>%g;'\
	|sed -e 's%&lt\;\([fht]*tp://\)\([^/]*\)\(.*\)&gt\;%<A HREF="\1\2\3">\2</A>%g;'\
	|sed -e 's%&lt\;\([^ /]*\)&gt\;%<A HREF="mailto:\1">\1</A>%g;'\
	> $@

tags allbin:

alldoc:	lsm rxvt.1

clean:
	$(RMF) $(VERNAME).lsm rxvt.1 *~

realclean: clean
	$(RMF) tags

distclean:
	(cd $(srcdir); $(RMF) $(VERNAME).lsm rxvt.1 *~)
	(cd $(srcdir); $(RMF) Makefile)

install: alldoc
	$(INSTALL_DATA) rxvt.1 $(DESTDIR)$(mandir)/$(manprefix)rxvt.$(manext)

uninstall:
	-cd $(mandir); $(RMF) $(manprefix)rxvt.$(manext)

distdirs:
	mkdir $(basedir)/../$(VERNAME)/$(thisdir)
	mkdir $(basedir)/../$(VERNAME)/$(thisdir)/etc
	mkdir $(basedir)/../$(VERNAME)/$(thisdir)/html
	mkdir $(basedir)/../$(VERNAME)/$(thisdir)/menu

distcopy: $(VERNAME).lsm
	$(CP) $(VERNAME).lsm $(basedir)/../$(VERNAME);
	$(CP) $(DIST)      $(basedir)/../$(VERNAME)/$(thisdir)
	$(CP) $(DIST_ETC)  $(basedir)/../$(VERNAME)/$(thisdir)/etc
	$(CP) $(DIST_HTML) $(basedir)/../$(VERNAME)/$(thisdir)/html
	$(CP) $(DIST_MENU) $(basedir)/../$(VERNAME)/$(thisdir)/menu
	if test -f html/rxvt.html; then \
	$(CP) html/rxvt.html $(basedir)/../$(VERNAME)/$(thisdir)/html; \
	fi

distdepend:

# ------------------------------------------------------------------------
# DO NOT DELETE: ugly dependency list follows
