i-bash/lib/termcap/grot/Makefile.in

139 lines
3.8 KiB
Makefile
Raw Normal View History

1996-08-26 18:22:31 +00:00
# Makefile for GNU termcap library.
1996-12-23 17:02:34 +00:00
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
1996-08-26 18:22:31 +00:00
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
1996-12-23 17:02:34 +00:00
AR = ar
RANLIB = @RANLIB@
1996-08-26 18:22:31 +00:00
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
MAKEINFO = makeinfo
1996-12-23 17:02:34 +00:00
DEFS = @DEFS@ -DTERMCAP_FILE=\"$(termcapfile)\"
1996-08-26 18:22:31 +00:00
CFLAGS = -g
1996-12-23 17:02:34 +00:00
prefix = @prefix@
exec_prefix = @exec_prefix@
1996-08-26 18:22:31 +00:00
# Directory in which to install libtermcap.a.
libdir = $(exec_prefix)/lib
# Directory in which to install termcap.h.
includedir = $(prefix)/include
# Directory in which to optionally also install termcap.h,
# so compilers besides gcc can find it by default.
# If it is empty or not defined, termcap.h will only be installed in
# includedir.
oldincludedir = /usr/include
# Directory in which to install the documentation info files.
infodir = $(prefix)/info
1996-12-23 17:02:34 +00:00
# File to which `install-data' should install the data file
# if --enable-install-termcap was given.
termcapfile = @termcapfile@
1996-08-26 18:22:31 +00:00
#### End of system configuration section. ####
SHELL = /bin/sh
SRCS = termcap.c tparam.c version.c
OBJS = termcap.o tparam.o version.o
HDRS = termcap.h
DISTFILES = $(SRCS) $(HDRS) ChangeLog COPYING README INSTALL NEWS \
1996-12-23 17:02:34 +00:00
termcap.src termcap.texi termcap.info* \
texinfo.tex Makefile.in configure configure.in mkinstalldirs install-sh
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
all: libtermcap.a info
1996-08-26 18:22:31 +00:00
.c.o:
1996-12-23 17:02:34 +00:00
$(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
install: all installdirs @installdata@
1996-08-26 18:22:31 +00:00
$(INSTALL_DATA) libtermcap.a $(libdir)/libtermcap.a
1996-12-23 17:02:34 +00:00
-$(RANLIB) $(libdir)/libtermcap.a
1996-08-26 18:22:31 +00:00
cd $(srcdir); $(INSTALL_DATA) termcap.h $(includedir)/termcap.h
-cd $(srcdir); test -z "$(oldincludedir)" || \
$(INSTALL_DATA) termcap.h $(oldincludedir)/termcap.h
cd $(srcdir); for f in termcap.info*; \
do $(INSTALL_DATA) $$f $(infodir)/$$f; done
1996-12-23 17:02:34 +00:00
uninstall: @uninstalldata@
1996-08-26 18:22:31 +00:00
rm -f $(libdir)/libtermcap.a $(includedir)/termcap.h
test -z "$(oldincludedir)" || rm -f $(oldincludedir)/termcap.h
rm -f $(infodir)/termcap.info*
1996-12-23 17:02:34 +00:00
# These are separate targets to avoid trashing the user's existing
# termcap file unexpectedly.
install-data:
$(INSTALL_DATA) ${srcdir}/termcap.src ${termcapfile}
uninstall-data:
rm -f ${termcapfile}
installdirs:
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(libdir) \
$(includedir) $(infodir)
Makefile: Makefile.in config.status
$(SHELL) config.status
config.status: configure
$(SHELL) config.status --recheck
configure: configure.in
cd $(srcdir) && autoconf
1996-08-26 18:22:31 +00:00
libtermcap.a: $(OBJS)
1996-12-23 17:02:34 +00:00
$(AR) rc $@ $(OBJS)
-$(RANLIB) $@
info: termcap.info
1996-08-26 18:22:31 +00:00
termcap.info: termcap.texi
1996-12-23 17:02:34 +00:00
$(MAKEINFO) $(srcdir)/termcap.texi --output=$@
1996-08-26 18:22:31 +00:00
TAGS: $(SRCS)
etags $(SRCS)
clean:
rm -f *.a *.o core
mostlyclean: clean
distclean: clean
1996-12-23 17:02:34 +00:00
rm -f Makefile config.status config.cache config.log
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
@echo "rebuilding the deleted files requires makeinfo."
1996-08-26 18:22:31 +00:00
rm -f TAGS *.info*
dist: $(DISTFILES)
echo termcap-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
rm -rf `cat .fname`
mkdir `cat .fname`
ln $(DISTFILES) `cat .fname`
1996-12-23 17:02:34 +00:00
tar chzf `cat .fname`.tar.gz `cat .fname`
1996-08-26 18:22:31 +00:00
rm -rf `cat .fname` .fname