xenocara/app/xterm/Makefile.in

584 lines
19 KiB
Makefile
Raw Normal View History

## $XTermId: Makefile.in,v 1.234 2015/02/12 09:31:30 tom Exp $
# -----------------------------------------------------------------------------
# this file is part of xterm
#
# Copyright 1997-2014,2015 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)
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@
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)
LDFLAGS = @LDFLAGS@ @EXTRA_LDFLAGS@
2006-11-26 04:11:12 -07:00
LIBS = @LIBS@
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@
2006-11-26 04:11:12 -07:00
manext = 1
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@/man$(manext)
appsdir = @APPSDIR@
icondir = @ICONDIR@
pixmapdir = @PIXMAPDIR@
2006-11-26 04:11:12 -07:00
#### End of system configuration section. ####
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)
@no_icondir@ICONDIR = $(DESTDIR)$(icondir)
@no_pixmapdir@PIXMAPDIR = $(DESTDIR)$(pixmapdir)
2006-11-26 04:11:12 -07: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 \
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 \
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)
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
################################################################################
.SUFFIXES : .i .def .hin .$(manext) .ms .man .txt @MAN2HTML_NOTE@ .html @GROFF_NOTE@ .ps .pdf
2006-11-26 04:11:12 -07:00
.c$o :
@RULE_CC@
2006-11-26 04:11:12 -07:00
@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/$*.c
.c.i :
@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) :
$(SHELL) ./minstall "$(INSTALL_DATA)" $< $@ $(appsdir) $(CLASS) $* $* $(pixmapdir)
@NROFF_NOTE@.$(manext).txt :
@NROFF_NOTE@ $(SHELL) -c "tbl $*.$(manext) | nroff -man | col -bx" >$@
@NROFF_NOTE@
@NROFF_NOTE@.ms.txt :
@NROFF_NOTE@ $(SHELL) -c "tbl $*.$(manext) | nroff -ms | col -bx" >$@
@NROFF_NOTE@
@MAN2HTML_NOTE@.$(manext).html :
@MAN2HTML_NOTE@ ./@MAN2HTML_TEMP@ $* $(manext) man >$@
@MAN2HTML_NOTE@
@GROFF_NOTE@.$(manext).ps :
@GROFF_NOTE@ $(SHELL) -c "tbl $*.$(manext) | groff -man" >$@
@GROFF_NOTE@
@GROFF_NOTE@.$(manext).txt :
@GROFF_NOTE@ GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | groff -Tascii -man | col -bx" >$@
@GROFF_NOTE@
@MAN2HTML_NOTE@.ms.html :
@MAN2HTML_NOTE@ ./@MAN2HTML_TEMP@ $* ms ms >$@
@MAN2HTML_NOTE@
@GROFF_NOTE@.ms.ps :
@GROFF_NOTE@ $(SHELL) -c "tbl $< | groff -ms" >$@
@GROFF_NOTE@
@GROFF_NOTE@.ms.txt :
@GROFF_NOTE@ GROFF_NO_SGR=stupid $(SHELL) -c "tbl $< | groff -Tascii -ms | col -bx" >$@
@GROFF_NOTE@
@GROFF_NOTE@.ps.pdf :
@GROFF_NOTE@ ps2pdf $*.ps
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 : $(OBJS1)
@ECHO_LD@$(SHELL) $(srcdir)/plink.sh $(LINK) $(LDFLAGS) -o $@ $(OBJS1) $(LIBS) $(EXTRA_LOADFLAGS)
2006-11-26 04:11:12 -07:00
resize$x : $(OBJS2)
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) $@
2006-11-26 04:11:12 -07:00
perl $(srcdir)/256colres.pl > $@
88colres.h :
-$(RM) $@
2006-11-26 04:11:12 -07:00
perl $(srcdir)/88colres.pl > $@
charproc$o : main.h @CHARPROC_DEPS@
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
################################################################################
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)
binary_k8term = $(actual_k8term)
2006-11-26 04:11:12 -07:00
install \
install-bin \
install-full :: xterm$x resize$x $(BINDIR)
@MAY_SETUID@ $(SHELL) $(srcdir)/sinstall.sh @SINSTALL_OPTS@ "$(INSTALL_PROGRAM)" xterm$x @XTERM_PATH@ $(BINDIR)/$(binary_xterm)
@NOT_SETUID@ $(INSTALL_PROGRAM) xterm$x $(BINDIR)/$(binary_xterm)
$(INSTALL_PROGRAM) -m 755 resize$x $(BINDIR)/$(binary_resize)
EDIT_SCRIPT = sed -e s,=xterm,=\$$name, -e s,XTerm,$(CLASS),
InstallLink = \
if test @XTERM_SYMLINK@ != NONE \
&& test \$$source != NONE \
&& test \$$source != \$$target ; then \
cd \$$TARGET && ( \
$(RM) \$$source ; \
$(LN_S) \$$target \$$source ; \
echo \"... created symbolic link:\" ; \
ls -l \$$target \$$source ) ; \
fi
InstallBinLink = TARGET=$(BINDIR); $(InstallLink)
InstallManLink = TARGET=$(MANDIR); $(InstallLink)
InstallScript = \
echo \"... installing $(BINDIR)/\$$target\"; \
name=$(binary_xterm); \
$(EDIT_SCRIPT) $(srcdir)/\$$source >\$$source.tmp; \
$(INSTALL_SCRIPT) -m 755 \$$source.tmp $(BINDIR)/\$$target; \
$(RM) \$$source.tmp
install \
install-bin \
install-scripts \
install-full :: $(BINDIR)
@$(SHELL) -c "source=\"@XTERM_SYMLINK@\"; \
target=\"$(binary_xterm)\"; \
$(InstallBinLink)"
@$(SHELL) -c "source=\"resize\"; \
target=\"$(binary_resize)\"; \
$(InstallBinLink)"
@$(SHELL) -c "source=\"uxterm\"; \
target=\"$(binary_uxterm)\"; \
$(InstallScript); \
$(InstallBinLink)"
@$(SHELL) -c "source=\"koi8rxterm\"; \
target=\"$(binary_k8term)\"; \
$(InstallScript); \
$(InstallBinLink)"
2006-11-26 04:11:12 -07:00
install \
install-man \
install-full :: $(MANDIR)
@-$(SHELL) -c "for source in xterm resize uxterm koi8rxterm ; \
do \
target=\`echo \"\$$source\" | sed '@program_transform_name@'\`; \
$(SHELL) ./minstall \"$(INSTALL_DATA)\" \
$(srcdir)/\$$source.man \
$(MANDIR)/\$$target.$(manext) \
$(appsdir) \
$(CLASS) \
\$$source \
\$$target \
$(pixmapdir); \
done"
@-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then \
source=$(actual_xterm).$(manext); \
target=@XTERM_SYMLINK@.$(manext); \
cd $(MANDIR) && ( \
$(RM) \$$target ; \
$(LN_S) \$$source \$$target ; \
echo '... created symbolic link:' ; \
ls -l \$$source \$$target ; \
) \
fi"
2006-11-26 04:11:12 -07:00
APP_NAMES = XTerm UXTerm KOI8RXTerm
2006-11-26 04:11:12 -07:00
@no_appsdir@install \
@no_appsdir@install-app \
@no_appsdir@install-full :: $(APPSDIR)
@no_appsdir@ @-$(SHELL) -c 'for s in $(APP_NAMES); \
@no_appsdir@ do \
@no_appsdir@ echo "** $$s"; \
@no_appsdir@ d=`echo $$s | sed -e s/XTerm/$(CLASS)/`; \
@no_appsdir@ echo installing $(APPSDIR)/$$d; \
@no_appsdir@ sed -e s/XTerm/$(CLASS)/ $(srcdir)/$$s.ad >XTerm.tmp; \
@no_appsdir@ $(INSTALL_DATA) XTerm.tmp $(APPSDIR)/$$d; \
@no_appsdir@ echo installing $(APPSDIR)/$$d-color; \
@no_appsdir@ sed -e s/XTerm/$$d/ $(srcdir)/XTerm-col.ad >XTerm.tmp; \
@no_appsdir@ $(INSTALL_DATA) XTerm.tmp $(APPSDIR)/$$d-color; \
@no_appsdir@ done'
@no_appsdir@ @$(RM) XTerm.tmp
@no_icondir@ @echo "... installed app-defaults"
@no_icondir@ICON_LIST = @ICON_LIST@
@no_icondir@ICON_THEME = @ICON_THEME@
@no_icondir@install \
@no_icondir@install-icon \
@no_icondir@install-full :: $(ICONDIR)
@no_icondir@ ACTUAL_XTERM=$(actual_xterm) \
@no_icondir@ $(SHELL) -c '\
@no_icondir@ h=$(ICONDIR)/$(ICON_THEME); \
@no_icondir@ for n in $(ICON_LIST); \
@no_icondir@ do \
@no_icondir@ 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,`; \
@no_icondir@ test -z "$$r" && continue; \
@no_icondir@ d=$$h/`echo "$$r" | sed -e "s,/[^/]*$$,,"`; \
@no_icondir@ test -d "$$d" || mkdir -p "$$d"; \
@no_icondir@ echo "installing icon $$h/$$r"; \
@no_icondir@ $(INSTALL_DATA) $$l $$h/$$r; \
@no_icondir@ s=`echo "$$r" | sed -e '"'s,^.*\.,.,'"'`; \
@no_icondir@ t=$(ICON_SYMLINK)$$s; \
@no_icondir@ b=`basename $$n $$s | sed -e "s,_[1-9][0-9]*x.*,,"`; \
@no_icondir@ if test "$(ICON_SYMLINK)" != NONE ; then \
@no_icondir@ if test "$$r" != "$$t" ; then \
@no_icondir@ if test "x$$b" = "x$(ICON_NAME)" ; then \
@no_icondir@ echo "linking $$r -> $$t"; \
@no_icondir@ ( cd $$h; $(RM) $$t; $(LN_S) $$r $$t; ) \
@no_icondir@ fi \
@no_icondir@ fi \
@no_icondir@ fi \
@no_icondir@ done'
@no_icondir@ @echo "... installed icons"
2006-11-26 04:11:12 -07:00
@no_pixmapdir@install \
@no_pixmapdir@install-icon \
@no_pixmapdir@install-full :: $(PIXMAPDIR)
@no_pixmapdir@ ACTUAL_XTERM=$(actual_xterm) \
@no_pixmapdir@ $(SHELL) -c '\
@no_pixmapdir@ h=$(PIXMAPDIR); \
@no_pixmapdir@ for n in $(srcdir)/icons/*xterm*_32x32.xpm $(srcdir)/icons/*xterm*_48x48.xpm; \
@no_pixmapdir@ do \
@no_pixmapdir@ l=`basename $$n`; \
@no_pixmapdir@ r=`echo "$$l" | sed -e "s,xterm,$$ACTUAL_XTERM,"`; \
@no_pixmapdir@ echo "installing pixmap $$h/$$r"; \
@no_pixmapdir@ $(INSTALL_DATA) $(srcdir)/icons/$$l $$h/$$r; \
@no_pixmapdir@ s=`echo "$$r" | sed -e '"'s,^.*\.,.,'"'`; \
@no_pixmapdir@ t=$(ICON_SYMLINK)$$s; \
@no_pixmapdir@ b=`basename $$n $$s | sed -e "s,_[1-9][0-9]*x.*,,"`; \
@no_pixmapdir@ if test "$(ICON_SYMLINK)" != NONE ; then \
@no_pixmapdir@ if test "x$$r" != "$$t" ; then \
@no_pixmapdir@ if test "x$$b" = "x$(ICON_NAME)" ; then \
@no_pixmapdir@ echo "linking $$r -> $$t"; \
@no_pixmapdir@ ( cd $$h; $(RM) $$t; $(LN_S) $$r $$t; ) \
@no_pixmapdir@ fi \
@no_pixmapdir@ fi \
@no_pixmapdir@ fi \
@no_pixmapdir@ done'
@no_pixmapdir@ @echo "... 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@
@no_ticprog@install-full \
@no_ticprog@install-ti :: $(TERMINFO_DIR)
@no_ticprog@ @$(SHELL) -c "$(SET_TERMINFO) $(srcdir)/run-tic.sh $(srcdir)/terminfo"
@no_ticprog@ @echo 'Completed installation of terminfo description.'
2006-11-26 04:11:12 -07:00
install-full \
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
################################################################################
UninstallLink = \
if test @XTERM_SYMLINK@ != NONE \
&& test \$$source != NONE \
&& test \$$source != \$$target \
&& test -h \$$TARGET/\$$source ; then \
echo \"... removing \$$TARGET/\$$source\"; \
cd \$$TARGET && \
$(RM) \$$source; \
fi
UninstallBinLink = TARGET=$(BINDIR); $(UninstallLink)
UninstallManLink = TARGET=$(MANDIR); $(UninstallLink)
UninstallBinary = \
echo \"... removing $(BINDIR)/\$$target\"; \
$(RM) $(BINDIR)/\$$target
2006-11-26 04:11:12 -07:00
uninstall \
uninstall-bin \
uninstall-full ::
@-$(SHELL) -c "source=\"@XTERM_SYMLINK@\"; \
target=\"$(binary_xterm)\"; \
$(UninstallBinLink); \
$(UninstallBinary)"
@-$(SHELL) -c "source=\"resize\"; \
target=\"$(binary_resize)\"; \
$(UninstallBinLink); \
$(UninstallBinary)"
uninstall \
uninstall-bin \
uninstall-scripts \
uninstall-full ::
@-$(SHELL) -c "source=\"uxterm\"; \
target=\"$(binary_uxterm)\"; \
$(UninstallBinLink); \
$(UninstallBinary)"
@-$(SHELL) -c "source=\"koi8rxterm\"; \
target=\"$(binary_k8term)\"; \
$(UninstallBinLink); \
$(UninstallBinary)"
2006-11-26 04:11:12 -07:00
uninstall \
uninstall-man \
uninstall-full ::
@-$(SHELL) -c "\
source=@XTERM_SYMLINK@.$(manext); \
target=$(actual_xterm).$(manext); \
$(UninstallManLink)"
@-$(SHELL) -c "for source in \
$(actual_xterm).$(manext) \
$(actual_resize).$(manext) \
$(actual_uxterm).$(manext) \
$(actual_k8term).$(manext); \
do \
echo \"... removing $(MANDIR)/\$$source\"; \
$(RM) $(MANDIR)/\$$source; \
done"
2006-11-26 04:11:12 -07:00
@no_appsdir@uninstall \
@no_appsdir@uninstall-app \
@no_appsdir@uninstall-full ::
@no_appsdir@ @-$(SHELL) -c 'for s in $(APP_NAMES); \
@no_appsdir@ do \
@no_appsdir@ echo "** $$s"; \
@no_appsdir@ d=`echo $$s | sed -e s/XTerm/$(CLASS)/`; \
@no_appsdir@ echo uninstalling $(APPSDIR)/$$d; \
@no_appsdir@ $(RM) $(APPSDIR)/$$d; \
@no_appsdir@ echo uninstalling $(APPSDIR)/$$d-color; \
@no_appsdir@ $(RM) $(APPSDIR)/$$d-color; \
@no_appsdir@ done'
@no_icondir@uninstall \
@no_icondir@uninstall-icon \
@no_icondir@uninstall-full ::
@no_icondir@ -@$(SHELL) -c 'for n in $(ICON_LIST); \
@no_icondir@ do \
@no_icondir@ x=$(actual_xterm); \
@no_icondir@ r=`echo "$$n" | sed -e s,\^.\*:,, -e s,xterm,$$x,`; \
@no_icondir@ test -z "$$r" && continue; \
@no_icondir@ h=$(ICONDIR)/$(ICON_THEME); \
@no_icondir@ echo removing $$h/$$r; \
@no_icondir@ $(RM) $$h/$$r; \
@no_icondir@ done'
@no_icondir@ @echo "... removed icons"
@no_pixmapdir@uninstall \
@no_pixmapdir@uninstall-icon \
@no_pixmapdir@uninstall-full ::
@no_pixmapdir@ ACTUAL_XTERM=$(actual_xterm) \
@no_pixmapdir@ $(SHELL) -c 'for n in $(srcdir)/icons/*xterm*_32x32.xpm $(srcdir)/icons/*xterm*_48x48.xpm; \
@no_pixmapdir@ do \
@no_pixmapdir@ l=`basename $$n`; \
@no_pixmapdir@ r=`echo "$$l" | sed -e "s,xterm,$$ACTUAL_XTERM,"`; \
@no_pixmapdir@ echo removing $(PIXMAPDIR)/$$r; \
@no_pixmapdir@ $(RM) $(PIXMAPDIR)/$$r; \
@no_pixmapdir@ done'
@no_pixmapdir@ @echo "... removed icons"
################################################################################
# Desktop-utils does not provide an uninstall, and is not uniformly available.
@desktop_utils@DESKTOP_FILES = $(srcdir)/xterm.desktop $(srcdir)/uxterm.desktop
@desktop_utils@DESKTOP_FLAGS = @DESKTOP_FLAGS@
@desktop_utils@install-desktop \
@desktop_utils@install-full ::
@desktop_utils@ ACTUAL_XTERM=$(actual_xterm) \
@desktop_utils@ $(SHELL) -c 'for n in $(DESKTOP_FILES); \
@desktop_utils@ do $(SHELL) df-install $$ACTUAL_XTERM $(DESKTOP_FLAGS) $$n; \
@desktop_utils@ done'
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
-$(RM) $(PROGRAMS) builtin_icons.h
2006-11-26 04:11:12 -07:00
distclean :: clean
2006-11-26 04:11:12 -07:00
-$(RM) Makefile config.status config.cache config.log xtermcfg.h
-$(RM) df-install minstall
distclean \
docs-clean ::
2007-06-15 13:34:50 -06:00
-$(RM) *.ps *.pdf *.png
-$(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
distclean ::
-$(RM) man2html.tmp
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
################################################################################
terminfo.out : terminfo ; tic -a -I -1 terminfo >$@
termcap.out : termcap ; tic -a -C -U termcap >$@
################################################################################
docs-ctlseqs \
docs :: $(srcdir)/ctlseqs.txt @MAN2HTML_NOTE@ ctlseqs.html @GROFF_NOTE@ ctlseqs.pdf ctlseqs.ps
ctlseqs.html : $(srcdir)/ctlseqs.ms
2007-06-15 13:34:50 -06:00
ctlseqs.pdf : ctlseqs.ps
ctlseqs.ps : $(srcdir)/ctlseqs.ms
ctlseqs.txt : $(srcdir)/ctlseqs.ms
2007-06-15 13:34:50 -06:00
################################################################################
docs-resize \
docs :: resize.txt @MAN2HTML_NOTE@ resize.html @GROFF_NOTE@ resize.pdf resize.ps
resize.html : resize.$(manext)
resize.pdf : resize.ps
resize.ps : resize.$(manext)
resize.txt : resize.$(manext)
################################################################################
docs-xterm \
docs :: xterm.txt @MAN2HTML_NOTE@ xterm.html @GROFF_NOTE@ 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)
################################################################################
docs-uxterm \
docs :: uxterm.txt @MAN2HTML_NOTE@ uxterm.html @GROFF_NOTE@ uxterm.pdf uxterm.ps
uxterm.html : uxterm.$(manext)
uxterm.pdf : uxterm.ps
uxterm.ps : uxterm.$(manext)
uxterm.txt : uxterm.$(manext)
################################################################################
docs-koi8rxterm \
docs :: koi8rxterm.txt @MAN2HTML_NOTE@ koi8rxterm.html @GROFF_NOTE@ koi8rxterm.pdf koi8rxterm.ps
koi8rxterm.html : koi8rxterm.$(manext)
koi8rxterm.pdf : koi8rxterm.ps
koi8rxterm.ps : koi8rxterm.$(manext)
koi8rxterm.txt : koi8rxterm.$(manext)
################################################################################
2006-11-26 04:11:12 -07:00
lint :
$(LINT) $(CPPFLAGS) $(SRCS1)
$(LINT) $(CPPFLAGS) $(SRCS2)
tags :
$(CTAGS) $(SRCS) $(HDRS)
2006-11-26 04:11:12 -07:00
TAGS :
$(ETAGS) $(SRCS) $(HDRS)
2006-11-26 04:11:12 -07:00
$(TERMINFO_DIR) $(INSTALL_DIRS) :
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.