2014-05-09 13:56:40 -06:00
## $XTermId: Makefile.in,v 1.225 2014/03/01 15:15:26 tom Exp $
# -----------------------------------------------------------------------------
# this file is part of xterm
#
# Copyright 1997-2013,2014 by Thomas E. Dickey
#
# All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name(s) of the above copyright
# holders shall not be used in advertising or otherwise to promote the
# sale, use or other dealings in this Software without prior written
# authorization.
# -----------------------------------------------------------------------------
2006-11-26 04:11:12 -07:00
SHELL = /bin/sh
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
x = @EXEEXT@
o = .@OBJEXT@
CC = @CC@
CPP = @CPP@
AWK = @AWK@
LINK = $( CC) $( CFLAGS)
2014-05-09 13:56:40 -06:00
CTAGS = @CTAGS@
ETAGS = @ETAGS@
2006-11-26 04:11:12 -07:00
LN_S = @LN_S@
RM = rm -f
LINT = @LINT@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
transform = @program_transform_name@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
EXTRA_CPPFLAGS = @EXTRA_CPPFLAGS@
EXTRA_LOADFLAGS = @IMAKE_LOADFLAGS@
2014-05-09 13:56:40 -06:00
CPPFLAGS = -I. -I$( srcdir) -DHAVE_CONFIG_H @CPPFLAGS@ -DDEFCLASS= \" @APP_CLASS@\" $( EXTRA_CPPFLAGS)
2006-11-26 04:11:12 -07:00
CFLAGS = @CFLAGS@ $( EXTRA_CFLAGS)
2014-05-09 13:56:40 -06:00
LDFLAGS = @LDFLAGS@ @EXTRA_LDFLAGS@
2006-11-26 04:11:12 -07:00
LIBS = @LIBS@
prefix = @prefix@
exec_prefix = @exec_prefix@
2014-05-09 13:56:40 -06:00
datarootdir = @datarootdir@
datadir = @datadir@
2006-11-26 04:11:12 -07:00
manext = 1
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@/man$( manext)
2014-05-09 13:56:40 -06:00
appsdir = @APPSDIR@
icondir = @ICONDIR@
pixmapdir = @PIXMAPDIR@
2006-11-26 04:11:12 -07:00
#### End of system configuration section. ####
2014-05-09 13:56:40 -06:00
ICON_NAME = @ICON_NAME@
ICON_SYMLINK = @ICON_SYMLINK@
DESTDIR =
2006-11-26 04:11:12 -07:00
BINDIR = $( DESTDIR) $( bindir)
LIBDIR = $( DESTDIR) $( libdir)
MANDIR = $( DESTDIR) $( mandir)
APPSDIR = $( DESTDIR) $( appsdir)
2014-05-09 13:56:40 -06:00
@ n o _ i c o n d i r @ ICONDIR = $( DESTDIR) $( icondir)
@ n o _ p i x m a p d i r @ PIXMAPDIR = $( DESTDIR) $( pixmapdir)
2006-11-26 04:11:12 -07:00
2014-05-09 13:56:40 -06:00
INSTALL_DIRS = $( BINDIR) $( APPSDIR) $( ICONDIR) $( PIXMAPDIR) $( MANDIR)
CLASS = @APP_CLASS@
2006-11-26 04:11:12 -07:00
EXTRAHDR = @EXTRAHDRS@
EXTRASRC = @EXTRASRCS@
EXTRAOBJ = @EXTRAOBJS@
2007-06-15 13:34:50 -06:00
SRCS1 = button.c cachedGCs.c charproc.c charsets.c cursor.c \
2006-11-26 04:11:12 -07:00
data.c doublechr.c fontutils.c input.c \
2014-05-09 13:56:40 -06:00
linedata.c main.c menu.c misc.c \
print.c ptydata.c scrollback.c \
screen.c scrollbar.c tabs.c util.c version.c xstrings.c \
xtermcap.c VTPrsTbl.c $( EXTRASRC)
2007-06-15 13:34:50 -06:00
OBJS1 = button$o cachedGCs$o charproc$o charsets$o cursor$o \
2006-11-26 04:11:12 -07:00
data$o doublechr$o fontutils$o input$o \
2014-05-09 13:56:40 -06:00
linedata$o main$o menu$o misc$o \
print$o ptydata$o scrollback$o \
screen$o scrollbar$o tabs$o util$o version$o xstrings$o \
xtermcap$o VTPrsTbl$o $( EXTRAOBJ)
SRCS2 = resize.c version.c xstrings.c
OBJS2 = resize$o version$o xstrings$o
2006-11-26 04:11:12 -07:00
SRCS = $( SRCS1) $( SRCS2)
OBJS = $( OBJS1) $( OBJS2)
2014-05-09 13:56:40 -06:00
HDRS = VTparse.h data.h error.h main.h menu.h \
2007-06-15 13:34:50 -06:00
ptyx.h version.h xstrings.h xterm.h xtermcap.h $( EXTRAHDR)
2006-11-26 04:11:12 -07:00
PROGRAMS = xterm$x resize$x
all : $( PROGRAMS )
2007-06-15 13:34:50 -06:00
################################################################################
2014-05-09 13:56:40 -06:00
.SUFFIXES : .i .def .hin .$( manext ) .ms .man .txt @GROFF_NOTE @ .html .ps .pdf
2006-11-26 04:11:12 -07:00
.c$o :
2014-05-09 13:56:40 -06:00
@RULE_CC@
2006-11-26 04:11:12 -07:00
@ECHO_CC@$( CC) $( CPPFLAGS) $( CFLAGS) -c $( srcdir) /$* .c
.c.i :
2014-05-09 13:56:40 -06:00
@RULE_CC@
2006-11-26 04:11:12 -07:00
@ECHO_CC@$( CPP) -C $( CPPFLAGS) $* .c >$@
.def.hin :
grep '^CASE_' $< | $( AWK) '{printf "#define %s %d\n", $$1, n++}' >$@
2007-06-15 13:34:50 -06:00
.man.$(manext) :
2014-05-09 13:56:40 -06:00
$( SHELL) ./minstall " $( INSTALL_DATA) " $< $@ $( appsdir) $( CLASS) $* $* $( pixmapdir)
@NROFF_NOTE@.$(manext).txt :
@ N R O F F _ N O T E @ $( SHELL ) - c "tbl $*.$(manext) | nroff -man | col -bx" > $@
@ N R O F F _ N O T E @
@NROFF_NOTE@.ms.txt :
@ N R O F F _ N O T E @ $( SHELL ) - c "tbl $*.$(manext) | nroff -ms | col -bx" > $@
@ N R O F F _ N O T E @
@GROFF_NOTE@.$(manext).html :
@ G R O F F _ N O T E @ GROFF_NO_SGR = stupid $( SHELL) -c " tbl $* . $( manext) | groff -P -o0 -I $* _ -Thtml -man " >$@
@ G R O F F _ N O T E @
@GROFF_NOTE@.$(manext).ps :
@ G R O F F _ N O T E @ $( SHELL ) - c "tbl $*.$(manext) | groff -man" > $@
@ G R O F F _ N O T E @
@GROFF_NOTE@.$(manext).txt :
@ G R O F F _ N O T E @ GROFF_NO_SGR = stupid $( SHELL) -c " tbl $* . $( manext) | groff -Tascii -man | col -bx " >$@
@ G R O F F _ N O T E @
@GROFF_NOTE@.ms.html :
@ G R O F F _ N O T E @ GROFF_NO_SGR = stupid $( SHELL) -c " tbl $< | groff -P -o0 -I $* _ -Thtml -ms " >$@
@ G R O F F _ N O T E @
@GROFF_NOTE@.ms.ps :
@ G R O F F _ N O T E @ $( SHELL ) - c "tbl $< | groff -ms" > $@
@ G R O F F _ N O T E @
@GROFF_NOTE@.ms.txt :
@ G R O F F _ N O T E @ GROFF_NO_SGR = stupid $( SHELL) -c " tbl $< | groff -Tascii -ms | col -bx " >$@
@ G R O F F _ N O T E @
@GROFF_NOTE@.ps.pdf :
@ G R O F F _ N O T E @ p s 2 p d f $* . p s
2007-06-15 13:34:50 -06:00
################################################################################
2006-11-26 04:11:12 -07:00
main$o : main .h
misc$o : version .h
$(OBJS1) : xterm .h ptyx .h xtermcfg .h
main$o resize$o screen$o : xterm_io .h
xterm$x : $( OBJS 1)
2014-05-09 13:56:40 -06:00
@ECHO_LD@$( SHELL) $( srcdir) /plink.sh $( LINK) $( LDFLAGS) -o $@ $( OBJS1) $( LIBS) $( EXTRA_LOADFLAGS)
2006-11-26 04:11:12 -07:00
resize$x : $( OBJS 2)
2007-06-15 13:34:50 -06:00
@ECHO_LD@$( SHELL) $( srcdir) /plink.sh $( LINK) $( LDFLAGS) -o $@ $( OBJS2) $( LIBS)
2006-11-26 04:11:12 -07:00
256colres.h :
-rm -f $@
perl $( srcdir) /256colres.pl > $@
88colres.h :
-rm -f $@
perl $( srcdir) /88colres.pl > $@
charproc$o : main .h @CHARPROC_DEPS @
2014-05-09 13:56:40 -06:00
misc$o : builtin_icons .h
# do this to quiet gcc -Wcast-qual warnings
builtin_icons.h :
@echo "#if OPT_BUILTIN_XPMS" >$@
@echo "#include <icons/mini.xterm.xpms>" >>$@
@echo "#include <icons/filled-xterm.xpms>" >>$@
@echo "#include <icons/xterm.xpms>" >>$@
@echo "#include <icons/xterm-color.xpms>" >>$@
@echo "#else" >>$@
@sed -e 's/static char \* /static const char * /' $( srcdir) /icons/mini.xterm_48x48.xpm >>$@
@echo "#endif" >>$@
@echo " made $@ "
2007-06-15 13:34:50 -06:00
################################################################################
2008-02-16 02:40:00 -07:00
actual_xterm = ` echo xterm| sed '$(transform)' `
actual_resize = ` echo resize| sed '$(transform)' `
actual_uxterm = ` echo uxterm| sed '$(transform)' `
actual_k8term = ` echo koi8rxterm| sed '$(transform)' `
2006-11-26 04:11:12 -07:00
binary_xterm = $( actual_xterm) $x
binary_resize = $( actual_resize) $x
binary_uxterm = $( actual_uxterm)
2008-02-16 02:40:00 -07:00
binary_k8term = $( actual_k8term)
2006-11-26 04:11:12 -07:00
i n s t a l l \
i n s t a l l - b i n \
install-full :: xterm $x resize $x $( BINDIR )
@ M A Y _ S E T U I D @ $( SHELL ) $( srcdir ) / s i n s t a l l . s h @ S I N S T A L L _ O P T S @ "$(INSTALL_PROGRAM)" x t e r m $ x @ X T E R M _ P A T H @ $( BINDIR ) / $( binary_xterm )
@ N O T _ S E T U I D @ $( INSTALL_PROGRAM ) x t e r m $ x $( BINDIR ) / $( binary_xterm )
$( INSTALL_PROGRAM) -m 755 resize$x $( BINDIR) /$( binary_resize)
2014-05-09 13:56:40 -06:00
EDIT_SCRIPT = sed -e s,= xterm,= \$ $name , -e s,XTerm,$( CLASS) ,
i n s t a l l \
i n s t a l l - b i n \
i n s t a l l - s c r i p t s \
install-full ::
@$( SHELL) -c " name=\" $( binary_xterm) \"; \
dest = \" $( binary_uxterm) \" ; \
echo \" ... installing $( BINDIR) /\$ $dest \" ; \
$( EDIT_SCRIPT) $( srcdir) /uxterm >uxterm.tmp; \
$( INSTALL_SCRIPT) -m 755 uxterm.tmp $( BINDIR) /\$ $dest ; \
rm -f uxterm.tmp"
@$( SHELL) -c " name=\" $( binary_xterm) \"; \
dest = \" $( binary_k8term) \" ; \
echo \" ... installing $( BINDIR) /\$ $dest \" ; \
$( EDIT_SCRIPT) $( srcdir) /koi8rxterm >k8term.tmp; \
$( INSTALL_SCRIPT) -m 755 k8term.tmp $( BINDIR) /\$ $dest ; \
rm -f k8term.tmp"
@-$( SHELL) -c " name=\" $( binary_xterm) \"; \
if test @XTERM_SYMLINK@ != NONE ; then \
cd $( BINDIR) && ( \
rm -f @XTERM_SYMLINK@ ; \
$( LN_S) \$ $name @XTERM_SYMLINK@ ; \
echo \" ... created symbolic link:\" ; \
ls -l \$ $name @XTERM_SYMLINK@ ) ; \
fi "
2006-11-26 04:11:12 -07:00
i n s t a l l \
i n s t a l l - m a n \
install-full :: $( MANDIR )
2014-05-09 13:56:40 -06:00
@-$( SHELL) -c " for app in xterm resize uxterm koi8rxterm ; \
do \
actual = \` echo \" \$ $app \" | sed '@program_transform_name@' \` ; \
$( SHELL) ./minstall \" $( INSTALL_DATA) \" $( srcdir) /\$ $app .man $( MANDIR) /\$ $actual .$( manext) $( appsdir) $( CLASS) \$ $app \$ $actual $( pixmapdir) ; \
done "
2007-06-15 13:34:50 -06:00
@-$( SHELL) -c " if test @XTERM_SYMLINK@ != NONE ; then cd $( MANDIR) && rm -f @XTERM_SYMLINK@. $( manext) ; fi "
@-$( SHELL) -c " if test @XTERM_SYMLINK@ != NONE ; then cd $( MANDIR) && $( LN_S) $( actual_xterm) . $( manext) @XTERM_SYMLINK@. $( manext) ; fi "
@-$( SHELL) -c " if test @XTERM_SYMLINK@ != NONE ; then cd $( MANDIR) && echo '... created symbolic link:' && ls -l $( actual_xterm) . $( manext) @XTERM_SYMLINK@. $( manext) ; fi "
2006-11-26 04:11:12 -07:00
2014-05-09 13:56:40 -06:00
APP_NAMES = XTerm UXTerm KOI8RXTerm
2006-11-26 04:11:12 -07:00
@ n o _ a p p s d i r @ i n s t a l l \
@ n o _ a p p s d i r @ i n s t a l l - a p p \
@no_appsdir@install-full :: $( APPSDIR )
2014-05-09 13:56:40 -06:00
@ n o _ a p p s d i r @ @ - $( SHELL ) - c ' f o r s i n $( APP_NAMES ) ; \
@ n o _ a p p s d i r @ d o \
@ n o _ a p p s d i r @ e c h o "** $$s" ; \
@ n o _ a p p s d i r @ d = ` echo $$ s | sed -e s/XTerm/$( CLASS) /` ; \
@ n o _ a p p s d i r @ e c h o i n s t a l l i n g $( APPSDIR ) / $$ d ; \
@ n o _ a p p s d i r @ s e d - e s / X T e r m / $( CLASS ) / $( srcdir ) / $$ s . a d > X T e r m . t m p ; \
@ n o _ a p p s d i r @ $( INSTALL_DATA ) X T e r m . t m p $( APPSDIR ) / $$ d ; \
@ n o _ a p p s d i r @ e c h o i n s t a l l i n g $( APPSDIR ) / $$ d - c o l o r ; \
@ n o _ a p p s d i r @ s e d - e s / X T e r m / $$ d / $( srcdir ) / X T e r m - c o l . a d > X T e r m . t m p ; \
@ n o _ a p p s d i r @ $( INSTALL_DATA ) X T e r m . t m p $( APPSDIR ) / $$ d - c o l o r ; \
@ n o _ a p p s d i r @ d o n e '
2006-11-26 04:11:12 -07:00
@ n o _ a p p s d i r @ @ r m - f X T e r m . t m p
2007-08-25 12:58:42 -06:00
@ n o _ i c o n d i r @ @ e c h o "... installed app-defaults"
2014-05-09 13:56:40 -06:00
@ n o _ i c o n d i r @ ICON_LIST = @ICON_LIST@
@ n o _ i c o n d i r @ ICON_THEME = @ICON_THEME@
2007-08-25 12:58:42 -06:00
@ n o _ i c o n d i r @ i n s t a l l \
@ n o _ i c o n d i r @ i n s t a l l - i c o n \
@no_icondir@install-full :: $( ICONDIR )
2014-05-09 13:56:40 -06:00
@ n o _ i c o n d i r @ ACTUAL_XTERM = $( actual_xterm) \
@ n o _ i c o n d i r @ $( SHELL ) - c ' \
@ n o _ i c o n d i r @ h = $( ICONDIR) /$( ICON_THEME) ; \
@ n o _ i c o n d i r @ f o r n i n $( ICON_LIST ) ; \
@ n o _ i c o n d i r @ d o \
@ n o _ i c o n d i r @ x = $$ ACTUAL_XTERM; \
@no_icondir@ l=`echo "$$n" | cut -f1 -d : `; \
@no_icondir@ r=`echo "$$n" | cut -f2 -d : | sed -e s , $( ICON_NAME ) , $$x -color , `; \
@ n o _ i c o n d i r @ t e s t - z "$$r" & & c o n t i n u e ; \
@ n o _ i c o n d i r @ d = $$ h/` echo " $$ r " | sed -e " s,/[^/]* $$ ,, " ` ; \
@ n o _ i c o n d i r @ t e s t - d "$$d" | | m k d i r - p "$$d" ; \
@ n o _ i c o n d i r @ e c h o "installing icon $$h/$$r" ; \
@ n o _ i c o n d i r @ $( INSTALL_DATA ) $$ l $$ h / $$ r ; \
@ n o _ i c o n d i r @ s = ` echo " $$ r " | sed -e '"' s,^.*\. ,.,'"' ` ; \
@ n o _ i c o n d i r @ t = $( ICON_SYMLINK) $$ s; \
@ n o _ i c o n d i r @ b = ` basename $$ n $$ s | sed -e "s,_[1-9][0-9]*x.*,," ` ; \
@ n o _ i c o n d i r @ i f t e s t "$(ICON_SYMLINK)" ! = N O N E ; t h e n \
@ n o _ i c o n d i r @ i f t e s t "$$r" ! = "$$t" ; t h e n \
@ n o _ i c o n d i r @ i f t e s t "x$$b" = "x$(ICON_NAME)" ; t h e n \
@ n o _ i c o n d i r @ e c h o "linking $$r -> $$t" ; \
@ n o _ i c o n d i r @ ( c d $$ h ; r m - f $$ t ; $( LN_S ) $$ r $$ t ; ) \
@ n o _ i c o n d i r @ f i \
@ n o _ i c o n d i r @ f i \
@ n o _ i c o n d i r @ f i \
@ n o _ i c o n d i r @ d o n e '
2007-08-25 12:58:42 -06:00
@ n o _ i c o n d i r @ @ e c h o "... installed icons"
2006-11-26 04:11:12 -07:00
2014-05-09 13:56:40 -06:00
@ n o _ p i x m a p d i r @ i n s t a l l \
@ n o _ p i x m a p d i r @ i n s t a l l - i c o n \
@no_pixmapdir@install-full :: $( PIXMAPDIR )
@ n o _ p i x m a p d i r @ ACTUAL_XTERM = $( actual_xterm) \
@ n o _ p i x m a p d i r @ $( SHELL ) - c ' \
@ n o _ p i x m a p d i r @ h = $( PIXMAPDIR) ; \
@ n o _ p i x m a p d i r @ f o r n i n $( srcdir ) / i c o n s / * x t e r m * _ 3 2 x 3 2 . x p m $( srcdir ) / i c o n s / * x t e r m * _ 4 8 x 4 8 . x p m ; \
@ n o _ p i x m a p d i r @ d o \
@ n o _ p i x m a p d i r @ l = ` basename $$ n` ; \
@ n o _ p i x m a p d i r @ r = ` echo " $$ l " | sed -e " s,xterm, $$ ACTUAL_XTERM, " ` ; \
@ n o _ p i x m a p d i r @ e c h o "installing pixmap $$h/$$r" ; \
@ n o _ p i x m a p d i r @ $( INSTALL_DATA ) $( srcdir ) / i c o n s / $$ l $$ h / $$ r ; \
@ n o _ p i x m a p d i r @ s = ` echo " $$ r " | sed -e '"' s,^.*\. ,.,'"' ` ; \
@ n o _ p i x m a p d i r @ t = $( ICON_SYMLINK) $$ s; \
@ n o _ p i x m a p d i r @ b = ` basename $$ n $$ s | sed -e "s,_[1-9][0-9]*x.*,," ` ; \
@ n o _ p i x m a p d i r @ i f t e s t "$(ICON_SYMLINK)" ! = N O N E ; t h e n \
@ n o _ p i x m a p d i r @ i f t e s t "x$$r" ! = "$$t" ; t h e n \
@ n o _ p i x m a p d i r @ i f t e s t "x$$b" = "x$(ICON_NAME)" ; t h e n \
@ n o _ p i x m a p d i r @ e c h o "linking $$r -> $$t" ; \
@ n o _ p i x m a p d i r @ ( c d $$ h ; r m - f $$ t ; $( LN_S ) $$ r $$ t ; ) \
@ n o _ p i x m a p d i r @ f i \
@ n o _ p i x m a p d i r @ f i \
@ n o _ p i x m a p d i r @ f i \
@ n o _ p i x m a p d i r @ d o n e '
@ n o _ p i x m a p d i r @ @ e c h o "... installed icons"
2006-11-26 04:11:12 -07:00
install ::
@echo 'Completed installation of executables and documentation.'
@echo 'Use "make install-ti" to install terminfo description.'
TERMINFO_DIR = @TERMINFO_DIR@
SET_TERMINFO = @SET_TERMINFO@
2014-05-09 13:56:40 -06:00
@ n o _ t i c p r o g @ i n s t a l l - f u l l \
@no_ticprog@install-ti :: $( TERMINFO_DIR )
@ n o _ t i c p r o g @ @ $( SHELL ) - c "$(SET_TERMINFO) $(srcdir)/run-tic.sh $(srcdir)/terminfo"
@ n o _ t i c p r o g @ @ e c h o 'Completed installation of terminfo description.'
2006-11-26 04:11:12 -07:00
i n s t a l l - f u l l \
install-tc ::
2007-06-15 13:34:50 -06:00
@-$( SHELL) -c "test -f /etc/termcap && echo 'You must install the termcap entry manually by editing /etc/termcap'"
2006-11-26 04:11:12 -07:00
installdirs : $( INSTALL_DIRS )
2007-06-15 13:34:50 -06:00
################################################################################
2006-11-26 04:11:12 -07:00
u n i n s t a l l \
u n i n s t a l l - b i n \
uninstall-full ::
-$( RM) $( BINDIR) /$( binary_xterm)
-$( RM) $( BINDIR) /$( binary_resize)
2014-05-09 13:56:40 -06:00
@-$( SHELL) -c " if test @XTERM_SYMLINK@ != NONE ; then cd $( BINDIR) && rm -f @XTERM_SYMLINK@; fi "
u n i n s t a l l \
u n i n s t a l l - b i n \
u n i n s t a l l - s c r i p t s \
uninstall-full ::
2006-11-26 04:11:12 -07:00
-$( RM) $( BINDIR) /$( binary_uxterm)
2008-02-16 02:40:00 -07:00
-$( RM) $( BINDIR) /$( binary_k8term)
2006-11-26 04:11:12 -07:00
u n i n s t a l l \
u n i n s t a l l - m a n \
uninstall-full ::
-$( RM) $( MANDIR) /$( actual_xterm) .$( manext)
-$( RM) $( MANDIR) /$( actual_resize) .$( manext)
2008-02-16 02:40:00 -07:00
-$( RM) $( MANDIR) /$( actual_uxterm) .$( manext)
-$( RM) $( MANDIR) /$( actual_k8term) .$( manext)
2007-06-15 13:34:50 -06:00
@-$( SHELL) -c " if test @XTERM_SYMLINK@ != NONE ; then cd $( MANDIR) && rm -f @XTERM_SYMLINK@. $( manext) ; fi "
2006-11-26 04:11:12 -07:00
@ n o _ a p p s d i r @ u n i n s t a l l \
@ n o _ a p p s d i r @ u n i n s t a l l - a p p \
@no_appsdir@uninstall-full ::
2014-05-09 13:56:40 -06:00
@ n o _ a p p s d i r @ @ - $( SHELL ) - c ' f o r s i n $( APP_NAMES ) ; \
@ n o _ a p p s d i r @ d o \
@ n o _ a p p s d i r @ e c h o "** $$s" ; \
@ n o _ a p p s d i r @ d = ` echo $$ s | sed -e s/XTerm/$( CLASS) /` ; \
@ n o _ a p p s d i r @ e c h o u n i n s t a l l i n g $( APPSDIR ) / $$ d ; \
@ n o _ a p p s d i r @ $( RM ) $( APPSDIR ) / $$ d ; \
@ n o _ a p p s d i r @ e c h o u n i n s t a l l i n g $( APPSDIR ) / $$ d - c o l o r ; \
@ n o _ a p p s d i r @ $( RM ) $( APPSDIR ) / $$ d - c o l o r ; \
@ n o _ a p p s d i r @ d o n e '
2007-08-25 12:58:42 -06:00
@ n o _ i c o n d i r @ u n i n s t a l l \
@ n o _ i c o n d i r @ u n i n s t a l l - i c o n \
@no_icondir@uninstall-full ::
2014-05-09 13:56:40 -06:00
@ n o _ i c o n d i r @ - @ $( SHELL ) - c ' f o r n i n $( ICON_LIST ) ; \
@ n o _ i c o n d i r @ d o \
@ n o _ i c o n d i r @ x = $( actual_xterm) ; \
@no_icondir@ r=`echo "$$n" | sed -e s,\^.\* : , , -e s , xterm , $$x , `; \
@ n o _ i c o n d i r @ t e s t - z "$$r" & & c o n t i n u e ; \
@ n o _ i c o n d i r @ h = $( ICONDIR) /$( ICON_THEME) ; \
@ n o _ i c o n d i r @ e c h o r e m o v i n g $$ h / $$ r ; \
@ n o _ i c o n d i r @ $( RM ) $$ h / $$ r ; \
@ n o _ i c o n d i r @ d o n e '
@ n o _ i c o n d i r @ @ e c h o "... removed icons"
@ n o _ p i x m a p d i r @ u n i n s t a l l \
@ n o _ p i x m a p d i r @ u n i n s t a l l - i c o n \
@no_pixmapdir@uninstall-full ::
@ n o _ p i x m a p d i r @ ACTUAL_XTERM = $( actual_xterm) \
@ n o _ p i x m a p d i r @ $( SHELL ) - c ' f o r n i n $( srcdir ) / i c o n s / * x t e r m * _ 3 2 x 3 2 . x p m $( srcdir ) / i c o n s / * x t e r m * _ 4 8 x 4 8 . x p m ; \
@ n o _ p i x m a p d i r @ d o \
@ n o _ p i x m a p d i r @ l = ` basename $$ n` ; \
@ n o _ p i x m a p d i r @ r = ` echo " $$ l " | sed -e " s,xterm, $$ ACTUAL_XTERM, " ` ; \
@ n o _ p i x m a p d i r @ e c h o r e m o v i n g $( PIXMAPDIR ) / $$ r ; \
@ n o _ p i x m a p d i r @ $( RM ) $( PIXMAPDIR ) / $$ r ; \
@ n o _ p i x m a p d i r @ d o n e '
@ n o _ p i x m a p d i r @ @ e c h o "... removed icons"
2007-08-25 12:58:42 -06:00
################################################################################
# Desktop-utils does not provide an uninstall, and is not uniformly available.
2014-05-09 13:56:40 -06:00
@ d e s k t o p _ u t i l s @ DESKTOP_FILES = $( srcdir) /xterm.desktop $( srcdir) /uxterm.desktop
2007-08-25 12:58:42 -06:00
@ d e s k t o p _ u t i l s @ DESKTOP_FLAGS = @DESKTOP_FLAGS@
@ d e s k t o p _ u t i l s @ i n s t a l l - d e s k t o p \
@desktop_utils@install-full ::
2014-05-09 13:56:40 -06:00
@ d e s k t o p _ u t i l s @ ACTUAL_XTERM = $( actual_xterm) \
@ d e s k t o p _ u t i l s @ $( SHELL ) - c ' f o r n i n $( DESKTOP_FILES ) ; \
@ d e s k t o p _ u t i l s @ d o $( SHELL ) d f - i n s t a l l $$ A C T U A L _ X T E R M $( DESKTOP_FLAGS ) $$ n ; \
@ d e s k t o p _ u t i l s @ d o n e '
2007-06-15 13:34:50 -06:00
################################################################################
2006-11-26 04:11:12 -07:00
mostlyclean :
-$( RM) *$o *.[ is] XtermLog.* .pure core *~ *.bak *.BAK *.out *.tmp
clean : mostlyclean
2014-05-09 13:56:40 -06:00
-$( RM) $( PROGRAMS) builtin_icons.h
2006-11-26 04:11:12 -07:00
2014-05-09 13:56:40 -06:00
distclean :: clean
2006-11-26 04:11:12 -07:00
-$( RM) Makefile config.status config.cache config.log xtermcfg.h
2014-05-09 13:56:40 -06:00
-$( RM) df-install minstall
d i s t c l e a n \
docs-clean ::
2007-06-15 13:34:50 -06:00
-$( RM) *.ps *.pdf *.png
2014-05-09 13:56:40 -06:00
-$( SHELL) -c ' for p in xterm resize uxterm koi8rxterm; \
do \
$( RM) $$ p.html $$ p.$( manext) $$ p.txt; \
done '
2007-06-15 13:34:50 -06:00
-$( RM) ctlseqs.html ctlseqs.$( manext)
2006-11-26 04:11:12 -07:00
realclean : distclean
2007-06-15 13:34:50 -06:00
-$( RM) tags TAGS
2006-11-26 04:11:12 -07:00
maintainer-clean : realclean
-$( RM) 256colres.h 88colres.h
2007-06-15 13:34:50 -06:00
################################################################################
2008-02-16 02:40:00 -07:00
terminfo.out : terminfo ; tic -a -I -1 terminfo >$@
termcap.out : termcap ; tic -a -C -U termcap >$@
################################################################################
2014-05-09 13:56:40 -06:00
d o c s - c t l s e q s \
docs :: \
$( srcdir) /ctlseqs.txt \
@ G R O F F _ N O T E @ c t l s e q s . h t m l \
@ G R O F F _ N O T E @ c t l s e q s . p d f \
@ G R O F F _ N O T E @ c t l s e q s . p s
ctlseqs.html : $( srcdir ) /ctlseqs .ms
2007-06-15 13:34:50 -06:00
ctlseqs.pdf : ctlseqs .ps
2014-05-09 13:56:40 -06:00
ctlseqs.ps : $( srcdir ) /ctlseqs .ms
ctlseqs.txt : $( srcdir ) /ctlseqs .ms
2007-06-15 13:34:50 -06:00
################################################################################
2014-05-09 13:56:40 -06:00
d o c s - r e s i z e \
docs :: resize .txt @GROFF_NOTE @ resize .html resize .pdf resize .ps
resize.html : resize .$( manext )
resize.pdf : resize .ps
resize.ps : resize .$( manext )
resize.txt : resize .$( manext )
################################################################################
d o c s - x t e r m \
docs :: xterm .txt @GROFF_NOTE @ xterm .html xterm .pdf xterm .ps
2007-06-15 13:34:50 -06:00
xterm.html : xterm .$( manext )
xterm.pdf : xterm .ps
xterm.ps : xterm .$( manext )
xterm.txt : xterm .$( manext )
################################################################################
2014-05-09 13:56:40 -06:00
d o c s - u x t e r m \
docs :: uxterm .txt @GROFF_NOTE @ uxterm .html uxterm .pdf uxterm .ps
uxterm.html : uxterm .$( manext )
uxterm.pdf : uxterm .ps
uxterm.ps : uxterm .$( manext )
uxterm.txt : uxterm .$( manext )
################################################################################
d o c s - k o i 8 r x t e r m \
docs :: koi 8rxterm .txt @GROFF_NOTE @ koi 8rxterm .html koi 8rxterm .pdf koi 8rxterm .ps
koi8rxterm.html : koi 8rxterm .$( manext )
koi8rxterm.pdf : koi 8rxterm .ps
koi8rxterm.ps : koi 8rxterm .$( manext )
koi8rxterm.txt : koi 8rxterm .$( manext )
################################################################################
2006-11-26 04:11:12 -07:00
lint :
$( LINT) $( CPPFLAGS) $( SRCS1)
$( LINT) $( CPPFLAGS) $( SRCS2)
tags :
2014-05-09 13:56:40 -06:00
$( CTAGS) $( SRCS) $( HDRS)
2006-11-26 04:11:12 -07:00
TAGS :
2014-05-09 13:56:40 -06:00
$( ETAGS) $( SRCS) $( HDRS)
2006-11-26 04:11:12 -07:00
$(TERMINFO_DIR) $(INSTALL_DIRS) :
2014-05-09 13:56:40 -06:00
mkdir -p $@
2006-11-26 04:11:12 -07:00
ALWAYS :
depend : $( TABLES )
makedepend -- $( CPPFLAGS) -- $( SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.