| 1 | ## $XTermId: Makefile.in,v 1.155 2008/01/05 14:26:52 tom Exp $ |
|---|
| 2 | ## |
|---|
| 3 | ## Copyright 2002-2006,2007 by Thomas E. Dickey |
|---|
| 4 | ## |
|---|
| 5 | ## All Rights Reserved |
|---|
| 6 | ## |
|---|
| 7 | ## Permission to use, copy, modify, and distribute this software and its |
|---|
| 8 | ## documentation for any purpose and without fee is hereby granted, |
|---|
| 9 | ## provided that the above copyright notice appear in all copies and that |
|---|
| 10 | ## both that copyright notice and this permission notice appear in |
|---|
| 11 | ## supporting documentation, and that the name of the above listed |
|---|
| 12 | ## copyright holder(s) not be used in advertising or publicity pertaining |
|---|
| 13 | ## to distribution of the software without specific, written prior |
|---|
| 14 | ## permission. |
|---|
| 15 | ## |
|---|
| 16 | ## THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD |
|---|
| 17 | ## TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
|---|
| 18 | ## AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE |
|---|
| 19 | ## LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|---|
| 20 | ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|---|
| 21 | ## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|---|
| 22 | ## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|---|
| 23 | |
|---|
| 24 | SHELL = /bin/sh |
|---|
| 25 | |
|---|
| 26 | #### Start of system configuration section. #### |
|---|
| 27 | |
|---|
| 28 | BITS = 64 |
|---|
| 29 | MOTIF_HOME = /opt/MaXX/OpenMotif-2.3.1 |
|---|
| 30 | MOTIF_INCLUDE = -I$(MOTIF_HOME)/include |
|---|
| 31 | MOTIF_LIB = -L$(MOTIF_HOME)/lib$(BITS) -lXm |
|---|
| 32 | |
|---|
| 33 | srcdir = @srcdir@ |
|---|
| 34 | VPATH = @srcdir@ |
|---|
| 35 | |
|---|
| 36 | x = @EXEEXT@ |
|---|
| 37 | o = .@OBJEXT@ |
|---|
| 38 | |
|---|
| 39 | CC = @CC@ |
|---|
| 40 | CPP = @CPP@ |
|---|
| 41 | AWK = @AWK@ |
|---|
| 42 | LINK = $(CC) $(CFLAGS) |
|---|
| 43 | |
|---|
| 44 | LN_S = @LN_S@ |
|---|
| 45 | RM = rm -f |
|---|
| 46 | LINT = @LINT@ |
|---|
| 47 | |
|---|
| 48 | INSTALL = @INSTALL@ |
|---|
| 49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|---|
| 50 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
|---|
| 51 | INSTALL_DATA = @INSTALL_DATA@ |
|---|
| 52 | transform = @program_transform_name@ |
|---|
| 53 | |
|---|
| 54 | EXTRA_CFLAGS = @EXTRA_CFLAGS@ |
|---|
| 55 | EXTRA_CPPFLAGS = @EXTRA_CPPFLAGS@ |
|---|
| 56 | EXTRA_LOADFLAGS = @IMAKE_LOADFLAGS@ |
|---|
| 57 | |
|---|
| 58 | CPPFLAGS = -I. -I$(srcdir) $(MOTIF_INCLUDE) -DMOTIF -DHAVE_CONFIG_H @CPPFLAGS@ $(EXTRA_CPPFLAGS) |
|---|
| 59 | CFLAGS = @CFLAGS@ $(EXTRA_CFLAGS) |
|---|
| 60 | LDFLAGS = @LDFLAGS@ |
|---|
| 61 | LIBS = $(MOTIF_LIB) $(MAXX_LIB) @LIBS@ -lXmu -lXp |
|---|
| 62 | |
|---|
| 63 | prefix = @prefix@ |
|---|
| 64 | exec_prefix = @exec_prefix@ |
|---|
| 65 | |
|---|
| 66 | manext = 1 |
|---|
| 67 | bindir = @bindir@ |
|---|
| 68 | libdir = @libdir@ |
|---|
| 69 | mandir = @mandir@/man$(manext) |
|---|
| 70 | appsdir = @appsdir@ |
|---|
| 71 | icondir = @icondir@ |
|---|
| 72 | |
|---|
| 73 | #### End of system configuration section. #### |
|---|
| 74 | |
|---|
| 75 | DESTDIR = |
|---|
| 76 | BINDIR = $(DESTDIR)$(bindir) |
|---|
| 77 | LIBDIR = $(DESTDIR)$(libdir) |
|---|
| 78 | MANDIR = $(DESTDIR)$(mandir) |
|---|
| 79 | APPSDIR = $(DESTDIR)$(appsdir) |
|---|
| 80 | ICONDIR = $(DESTDIR)$(icondir) |
|---|
| 81 | |
|---|
| 82 | INSTALL_DIRS = $(BINDIR) $(APPSDIR) $(ICONDIR) $(MANDIR) |
|---|
| 83 | |
|---|
| 84 | CLASS = MXTerm |
|---|
| 85 | EXTRAHDR = @EXTRAHDRS@ |
|---|
| 86 | EXTRASRC = @EXTRASRCS@ |
|---|
| 87 | EXTRAOBJ = @EXTRAOBJS@ |
|---|
| 88 | |
|---|
| 89 | SRCS1 = button.c cachedGCs.c charproc.c charsets.c cursor.c \ |
|---|
| 90 | data.c doublechr.c fontutils.c input.c \ |
|---|
| 91 | $(MAINSRC) menu.c misc.c print.c ptydata.c \ |
|---|
| 92 | screen.c scrollbar.c tabs.c util.c xstrings.c xtermcap.c \ |
|---|
| 93 | VTPrsTbl.c $(EXTRASRC) |
|---|
| 94 | OBJS1 = button$o cachedGCs$o charproc$o charsets$o cursor$o \ |
|---|
| 95 | data$o doublechr$o fontutils$o input$o \ |
|---|
| 96 | main$o menu$o misc$o print$o ptydata$o \ |
|---|
| 97 | screen$o scrollbar$o tabs$o util$o xstrings$o xtermcap$o \ |
|---|
| 98 | VTPrsTbl$o $(EXTRAOBJ) |
|---|
| 99 | SRCS2 = resize.c xstrings.c |
|---|
| 100 | OBJS2 = resize$o xstrings$o |
|---|
| 101 | SRCS = $(SRCS1) $(SRCS2) |
|---|
| 102 | OBJS = $(OBJS1) $(OBJS2) |
|---|
| 103 | HDRS = VTparse.h data.h error.h main.h menu.h proto.h \ |
|---|
| 104 | ptyx.h version.h xstrings.h xterm.h xtermcap.h $(EXTRAHDR) |
|---|
| 105 | PROGRAMS = mxterm$x resize$x |
|---|
| 106 | |
|---|
| 107 | all : $(PROGRAMS) |
|---|
| 108 | ################################################################################ |
|---|
| 109 | .SUFFIXES : .i .def .hin .html .$(manext) .ms .man .ps .pdf .txt |
|---|
| 110 | |
|---|
| 111 | .c$o : |
|---|
| 112 | @RULE_CC@ |
|---|
| 113 | @ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/$*.c |
|---|
| 114 | |
|---|
| 115 | .c.i : |
|---|
| 116 | @RULE_CC@ |
|---|
| 117 | @ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@ |
|---|
| 118 | |
|---|
| 119 | .def.hin : |
|---|
| 120 | grep '^CASE_' $< | $(AWK) '{printf "#define %s %d\n", $$1, n++}' >$@ |
|---|
| 121 | |
|---|
| 122 | .man.$(manext) : |
|---|
| 123 | $(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/xterm.man $@ $(appsdir) |
|---|
| 124 | |
|---|
| 125 | .$(manext).html : |
|---|
| 126 | GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | groff -Thtml -man" >$@ |
|---|
| 127 | |
|---|
| 128 | .$(manext).ps : |
|---|
| 129 | $(SHELL) -c "tbl $*.$(manext) | groff -man" >$@ |
|---|
| 130 | |
|---|
| 131 | .$(manext).txt : |
|---|
| 132 | GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | nroff -Tascii -man | col -bx" >$@ |
|---|
| 133 | |
|---|
| 134 | .ms.html : |
|---|
| 135 | GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.ms | groff -Thtml -ms" >$@ |
|---|
| 136 | |
|---|
| 137 | .ms.ps : |
|---|
| 138 | $(SHELL) -c "tbl $*.ms | groff -ms" >$@ |
|---|
| 139 | |
|---|
| 140 | .ms.txt : |
|---|
| 141 | GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.ms | nroff -Tascii -ms | col -bx" >$@ |
|---|
| 142 | |
|---|
| 143 | .ps.pdf : |
|---|
| 144 | ps2pdf $*.ps |
|---|
| 145 | ################################################################################ |
|---|
| 146 | main$o : main.h |
|---|
| 147 | misc$o : version.h |
|---|
| 148 | |
|---|
| 149 | $(OBJS1) : xterm.h ptyx.h xtermcfg.h |
|---|
| 150 | main$o resize$o screen$o : xterm_io.h |
|---|
| 151 | |
|---|
| 152 | mxterm$x : $(OBJS1) |
|---|
| 153 | @ECHO_LD@$(LINK) $(LDFLAGS) -o $@ $(OBJS1) $(LIBS) $(EXTRA_LOADFLAGS) |
|---|
| 154 | |
|---|
| 155 | resize$x : $(OBJS2) |
|---|
| 156 | @ECHO_LD@$(SHELL) $(srcdir)/plink.sh $(LINK) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS) |
|---|
| 157 | |
|---|
| 158 | 256colres.h : |
|---|
| 159 | -rm -f $@ |
|---|
| 160 | perl $(srcdir)/256colres.pl > $@ |
|---|
| 161 | |
|---|
| 162 | 88colres.h : |
|---|
| 163 | -rm -f $@ |
|---|
| 164 | perl $(srcdir)/88colres.pl > $@ |
|---|
| 165 | |
|---|
| 166 | charproc$o : main.h @CHARPROC_DEPS@ |
|---|
| 167 | ################################################################################ |
|---|
| 168 | actual_xterm = `echo mxterm| sed '$(transform)'` |
|---|
| 169 | actual_resize = `echo resize| sed '$(transform)'` |
|---|
| 170 | actual_uxterm = `echo uxterm| sed '$(transform)'` |
|---|
| 171 | actual_k8term = `echo koi8rxterm| sed '$(transform)'` |
|---|
| 172 | |
|---|
| 173 | binary_xterm = $(actual_xterm)$x |
|---|
| 174 | binary_resize = $(actual_resize)$x |
|---|
| 175 | binary_uxterm = $(actual_uxterm) |
|---|
| 176 | binary_k8term = $(actual_k8term) |
|---|
| 177 | |
|---|
| 178 | install \ |
|---|
| 179 | install-bin \ |
|---|
| 180 | install-full :: mxterm$x resize$x $(BINDIR) |
|---|
| 181 | @MAY_SETUID@ $(SHELL) $(srcdir)/sinstall.sh @SINSTALL_OPTS@ "$(INSTALL_PROGRAM)" mxterm$x @XTERM_PATH@ $(BINDIR)/$(binary_xterm) |
|---|
| 182 | @NOT_SETUID@ $(INSTALL_PROGRAM) mxterm$x $(BINDIR)/$(binary_xterm) |
|---|
| 183 | $(INSTALL_PROGRAM) -m 755 resize$x $(BINDIR)/$(binary_resize) |
|---|
| 184 | @$(SHELL) -c 'echo "... installing $(BINDIR)/$(binary_uxterm)"; \ |
|---|
| 185 | if test "$(binary_xterm)" != "mxterm"; then \ |
|---|
| 186 | name="$(binary_xterm)"; \ |
|---|
| 187 | sed -e "s,=mxterm,=$$name," $(srcdir)/uxterm >uxterm.tmp; \ |
|---|
| 188 | $(INSTALL_SCRIPT) -m 755 uxterm.tmp $(BINDIR)/$(binary_uxterm); \ |
|---|
| 189 | rm -f uxterm.tmp; \ |
|---|
| 190 | else \ |
|---|
| 191 | $(INSTALL_SCRIPT) -m 755 $(srcdir)/uxterm $(BINDIR)/$(binary_uxterm); \ |
|---|
| 192 | fi' |
|---|
| 193 | @$(SHELL) -c 'echo "... installing $(BINDIR)/$(binary_k8term)"; \ |
|---|
| 194 | if test "$(binary_xterm)" != "xterm"; then \ |
|---|
| 195 | name="$(binary_xterm)"; \ |
|---|
| 196 | sed -e "s,=xterm,=$$name," $(srcdir)/koi8rxterm >k8term.tmp; \ |
|---|
| 197 | $(INSTALL_SCRIPT) -m 755 k8term.tmp $(BINDIR)/$(binary_k8term); \ |
|---|
| 198 | rm -f k8term.tmp; \ |
|---|
| 199 | else \ |
|---|
| 200 | $(INSTALL_SCRIPT) -m 755 $(srcdir)/koi8rxterm $(BINDIR)/$(binary_k8term); \ |
|---|
| 201 | fi' |
|---|
| 202 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && rm -f @XTERM_SYMLINK@ ; fi" |
|---|
| 203 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && $(LN_S) $(binary_xterm) @XTERM_SYMLINK@ ; fi" |
|---|
| 204 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && echo '... created symbolic link:' && ls -l $(binary_xterm) @XTERM_SYMLINK@ ; fi" |
|---|
| 205 | |
|---|
| 206 | install \ |
|---|
| 207 | install-man \ |
|---|
| 208 | install-full :: $(MANDIR) |
|---|
| 209 | $(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/xterm.man $(MANDIR)/$(actual_xterm).$(manext) $(appsdir) |
|---|
| 210 | $(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/resize.man $(MANDIR)/$(actual_resize).$(manext) $(appsdir) |
|---|
| 211 | $(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/uxterm.man $(MANDIR)/$(actual_uxterm).$(manext) $(appsdir) |
|---|
| 212 | $(SHELL) $(srcdir)/minstall.sh "$(INSTALL_DATA)" $(srcdir)/koi8rxterm.man $(MANDIR)/$(actual_k8term).$(manext) $(appsdir) |
|---|
| 213 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && rm -f @XTERM_SYMLINK@.$(manext) ; fi" |
|---|
| 214 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && $(LN_S) $(actual_xterm).$(manext) @XTERM_SYMLINK@.$(manext) ; fi" |
|---|
| 215 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && echo '... created symbolic link:' && ls -l $(actual_xterm).$(manext) @XTERM_SYMLINK@.$(manext) ; fi" |
|---|
| 216 | |
|---|
| 217 | @no_appsdir@install \ |
|---|
| 218 | @no_appsdir@install-app \ |
|---|
| 219 | @no_appsdir@install-full :: $(APPSDIR) |
|---|
| 220 | @no_appsdir@ @echo installing $(APPSDIR)/$(CLASS) |
|---|
| 221 | @no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/XTerm.ad >XTerm.tmp |
|---|
| 222 | @no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/$(CLASS) |
|---|
| 223 | @no_appsdir@ @echo installing $(APPSDIR)/$(CLASS)-color |
|---|
| 224 | @no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/XTerm-col.ad >XTerm.tmp |
|---|
| 225 | @no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/$(CLASS)-color |
|---|
| 226 | @no_appsdir@ @echo installing $(APPSDIR)/UXTerm |
|---|
| 227 | @no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/UXTerm.ad >XTerm.tmp |
|---|
| 228 | @no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/UXTerm |
|---|
| 229 | @no_appsdir@ @echo installing $(APPSDIR)/KOI8RXTerm |
|---|
| 230 | @no_appsdir@ @sed -e s/XTerm/$(CLASS)/ $(srcdir)/KOI8RXTerm.ad >XTerm.tmp |
|---|
| 231 | @no_appsdir@ @$(INSTALL_DATA) XTerm.tmp $(APPSDIR)/KOI8RXTerm |
|---|
| 232 | @no_appsdir@ @rm -f XTerm.tmp |
|---|
| 233 | @no_icondir@ @echo "... installed app-defaults" |
|---|
| 234 | |
|---|
| 235 | @no_icondir@install \ |
|---|
| 236 | @no_icondir@install-icon \ |
|---|
| 237 | @no_icondir@install-full :: $(ICONDIR) |
|---|
| 238 | @no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm-color_32x32.xpm $(ICONDIR) |
|---|
| 239 | @no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm-color_48x48.xpm $(ICONDIR) |
|---|
| 240 | @no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm_32x32.xpm $(ICONDIR) |
|---|
| 241 | @no_icondir@ @$(INSTALL_DATA) $(srcdir)/icons/xterm_48x48.xpm $(ICONDIR) |
|---|
| 242 | @no_icondir@ @echo "... installed icons" |
|---|
| 243 | |
|---|
| 244 | install :: |
|---|
| 245 | @echo 'Completed installation of executables and documentation.' |
|---|
| 246 | @echo 'Use "make install-ti" to install terminfo description.' |
|---|
| 247 | |
|---|
| 248 | TERMINFO_DIR = @TERMINFO_DIR@ |
|---|
| 249 | SET_TERMINFO = @SET_TERMINFO@ |
|---|
| 250 | |
|---|
| 251 | install-full \ |
|---|
| 252 | install-ti :: $(TERMINFO_DIR) |
|---|
| 253 | @$(SHELL) -c "$(SET_TERMINFO) $(srcdir)/run-tic.sh $(srcdir)/terminfo" |
|---|
| 254 | @echo 'Completed installation of terminfo description.' |
|---|
| 255 | |
|---|
| 256 | install-full \ |
|---|
| 257 | install-tc :: |
|---|
| 258 | @-$(SHELL) -c "test -f /etc/termcap && echo 'You must install the termcap entry manually by editing /etc/termcap'" |
|---|
| 259 | |
|---|
| 260 | installdirs : $(INSTALL_DIRS) |
|---|
| 261 | ################################################################################ |
|---|
| 262 | uninstall \ |
|---|
| 263 | uninstall-bin \ |
|---|
| 264 | uninstall-full :: |
|---|
| 265 | -$(RM) $(BINDIR)/$(binary_xterm) |
|---|
| 266 | -$(RM) $(BINDIR)/$(binary_resize) |
|---|
| 267 | -$(RM) $(BINDIR)/$(binary_uxterm) |
|---|
| 268 | -$(RM) $(BINDIR)/$(binary_k8term) |
|---|
| 269 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(BINDIR) && rm -f @XTERM_SYMLINK@; fi" |
|---|
| 270 | |
|---|
| 271 | uninstall \ |
|---|
| 272 | uninstall-man \ |
|---|
| 273 | uninstall-full :: |
|---|
| 274 | -$(RM) $(MANDIR)/$(actual_xterm).$(manext) |
|---|
| 275 | -$(RM) $(MANDIR)/$(actual_resize).$(manext) |
|---|
| 276 | -$(RM) $(MANDIR)/$(actual_uxterm).$(manext) |
|---|
| 277 | -$(RM) $(MANDIR)/$(actual_k8term).$(manext) |
|---|
| 278 | @-$(SHELL) -c "if test @XTERM_SYMLINK@ != NONE ; then cd $(MANDIR) && rm -f @XTERM_SYMLINK@.$(manext); fi" |
|---|
| 279 | |
|---|
| 280 | @no_appsdir@uninstall \ |
|---|
| 281 | @no_appsdir@uninstall-app \ |
|---|
| 282 | @no_appsdir@uninstall-full :: |
|---|
| 283 | @no_appsdir@ -$(RM) $(APPSDIR)/$(CLASS) |
|---|
| 284 | @no_appsdir@ -$(RM) $(APPSDIR)/$(CLASS)-color |
|---|
| 285 | @no_appsdir@ -$(RM) $(APPSDIR)/UXTerm |
|---|
| 286 | |
|---|
| 287 | @no_icondir@uninstall \ |
|---|
| 288 | @no_icondir@uninstall-icon \ |
|---|
| 289 | @no_icondir@uninstall-full :: |
|---|
| 290 | @no_icondir@ -$(RM) $(ICONDIR)/xterm-color_32x32.xpm |
|---|
| 291 | @no_icondir@ -$(RM) $(ICONDIR)/xterm_32x32.xpm |
|---|
| 292 | @no_icondir@ -$(RM) $(ICONDIR)/xterm-color_48x48.xpm |
|---|
| 293 | @no_icondir@ -$(RM) $(ICONDIR)/xterm_48x48.xpm |
|---|
| 294 | ################################################################################ |
|---|
| 295 | # Desktop-utils does not provide an uninstall, and is not uniformly available. |
|---|
| 296 | @desktop_utils@DESKTOP_FLAGS = @DESKTOP_FLAGS@ |
|---|
| 297 | @desktop_utils@install-desktop \ |
|---|
| 298 | @desktop_utils@install-full :: |
|---|
| 299 | @desktop_utils@ desktop-file-install $(DESKTOP_FLAGS) xterm.desktop |
|---|
| 300 | @desktop_utils@ desktop-file-install $(DESKTOP_FLAGS) uxterm.desktop |
|---|
| 301 | ################################################################################ |
|---|
| 302 | mostlyclean : |
|---|
| 303 | -$(RM) *$o *.[is] XtermLog.* .pure core *~ *.bak *.BAK *.out *.tmp |
|---|
| 304 | |
|---|
| 305 | clean : mostlyclean |
|---|
| 306 | -$(RM) $(PROGRAMS) |
|---|
| 307 | |
|---|
| 308 | distclean : clean |
|---|
| 309 | -$(RM) Makefile config.status config.cache config.log xtermcfg.h |
|---|
| 310 | -$(RM) *.ps *.pdf *.png |
|---|
| 311 | -$(RM) xterm.html xterm.$(manext) xterm.txt |
|---|
| 312 | -$(RM) ctlseqs.html ctlseqs.$(manext) |
|---|
| 313 | |
|---|
| 314 | realclean : distclean |
|---|
| 315 | -$(RM) tags TAGS |
|---|
| 316 | |
|---|
| 317 | maintainer-clean : realclean |
|---|
| 318 | -$(RM) 256colres.h 88colres.h |
|---|
| 319 | ################################################################################ |
|---|
| 320 | terminfo.out : terminfo ; tic -a -I -1 terminfo >$@ |
|---|
| 321 | termcap.out : termcap ; tic -a -C -U termcap >$@ |
|---|
| 322 | ################################################################################ |
|---|
| 323 | ctlseqs.html : ctlseqs.ms |
|---|
| 324 | ctlseqs.pdf : ctlseqs.ps |
|---|
| 325 | ctlseqs.ps : ctlseqs.ms |
|---|
| 326 | ctlseqs.txt : ctlseqs.ms |
|---|
| 327 | ################################################################################ |
|---|
| 328 | xterm.html : xterm.$(manext) |
|---|
| 329 | xterm.pdf : xterm.ps |
|---|
| 330 | xterm.ps : xterm.$(manext) |
|---|
| 331 | xterm.txt : xterm.$(manext) |
|---|
| 332 | ################################################################################ |
|---|
| 333 | lint : |
|---|
| 334 | $(LINT) $(CPPFLAGS) $(SRCS1) |
|---|
| 335 | $(LINT) $(CPPFLAGS) $(SRCS2) |
|---|
| 336 | |
|---|
| 337 | tags : |
|---|
| 338 | ctags $(SRCS) $(HDRS) |
|---|
| 339 | |
|---|
| 340 | TAGS : |
|---|
| 341 | etags $(SRCS) $(HDRS) |
|---|
| 342 | |
|---|
| 343 | $(TERMINFO_DIR) $(INSTALL_DIRS) : |
|---|
| 344 | $(SHELL) ${srcdir}/mkdirs.sh $@ |
|---|
| 345 | |
|---|
| 346 | ALWAYS : |
|---|
| 347 | |
|---|
| 348 | depend : $(TABLES) |
|---|
| 349 | makedepend -- $(CPPFLAGS) -- $(SRCS) |
|---|
| 350 | |
|---|
| 351 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
|---|