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

# ./Make.common.in	 -*- Makefile -*-

# LSM date, release date (man pages), version number
DATE="23 January 1997"#
LSMDATE=23JAN97#
VERSION=2.20#
VERNAME=rxvt-$(VERSION)#
# MAINT=An orphaned piece of software as of 22 Jan 1997.# current maintainer
MAINT="mj olesen <olesen@me.queensu.ca> \
but thesis first!/will someone else volunteer?"
# current maintainer
srcdir = .

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
INSTALL = /bin/ginstall -c
INSTALL_PROGRAM = /bin/ginstall -c -s -m 755
INSTALL_DATA = /bin/ginstall -c -m 644

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

CFLAGS = -O2
CPPFLAGS =  #-DHAVE_LIBXPM
LDFLAGS = 
DEFS = -DHAVE_CONFIG_H
LIBS = 

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

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

# End of Make.common
basedir = $(srcdir)/..
thisdir = doc

first_rule: all
dummy:

#
# Distribution variables
#

DIST =	Makefile.in README.greek README.xvt FAQ TODO changes.txt\
	rxvt.ref xterm.seq rxvt.1.in LSM.in\
	menu.sh jedmenu.sl

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

all:	alldoc

rxvt.1: rxvt.1.in
	sed 's%@VERSION@%$(VERSION)%g;s%@DATE@%$(DATE)%g;s%@MAINT@%$(MAINT)%g' $@.in > $@

LSM: LSM.in
	sed 's%@VERSION@%$(VERSION)%g;s%@LSMDATE@%$(LSMDATE)%g;s%@MAINT@%$(MAINT)%g' $@.in > $@

tags allbin:

alldoc:	rxvt.1 LSM

clean:
	$(RMF) LSM rxvt.1 *~

realclean: clean

distclean:
	(cd $(srcdir); $(RMF) 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)

distcopy: LSM
	$(CP) $(DIST) $(basedir)/../$(VERNAME)/$(thisdir)
	$(CP) LSM $(basedir)/../$(VERNAME)/$(VERNAME).lsm
	(cd $(basedir)/../$(VERNAME)/$(thisdir) && ln -s ../install.sh ./)
	if test -f rxvt.html; then \
	$(CP) rxvt.html $(basedir)/../$(VERNAME)/rxvt-$(VERSION).html; \
	fi

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