1# $LynxId: makefile.in,v 1.173 2018/07/08 10:56:19 tom Exp $ 2##makefile for lynx 3 4SHELL = @CONFIG_SHELL@ 5CDPATH = . 6 7.SUFFIXES: 8@SET_MAKE@ 9prefix = @prefix@ 10exec_prefix = @exec_prefix@ 11top_srcdir = @top_srcdir@ 12srcdir = @srcdir@ 13builddir = . 14VPATH = $(srcdir) 15 16CC = @CC@ 17CFLAGS = @CFLAGS@ 18DEFS = @DEFS@ 19CPPFLAGS = @CPPFLAGS@ 20LINT = @LINT@ 21ETAGS = @ETAGS@ 22 23BUILD_CC = @BUILD_CC@ 24BUILD_CPP = @BUILD_CPP@ 25BUILD_CFLAGS = @BUILD_CFLAGS@ 26BUILD_CPPFLAGS = @BUILD_CPPFLAGS@ @DEFS@ 27BUILD_EXEEXT = @BUILD_EXEEXT@ 28BUILD_LDFLAGS = @BUILD_LDFLAGS@ 29BUILD_LIBS = @BUILD_LIBS@ 30 31x = @EXEEXT@ 32o = .@OBJEXT@ 33 34LDFLAGS = @EXTRA_LDFLAGS@ @LDFLAGS@ 35LIBS = @LIBS@ 36 37INSTALL = @INSTALL@ 38INSTALL_PROGRAM = @INSTALL_PROGRAM@ 39INSTALL_DATA = @INSTALL_DATA@ 40 41LN_S = @LN_S@ 42 43TAR = @TAR@ 44TAR_UP = $(TAR) @TAR_UP_OPTIONS@ @TAR_PIPE_OPTIONS@ 45TAR_DOWN = $(TAR) @TAR_DOWN_OPTIONS@ @TAR_PIPE_OPTIONS@ 46 47# $Format: "LYNX_VERSION = $ProjectVersion$"$ 48LYNX_VERSION = 2.8.9rel.1 49 50## This is the version which we are developing (or, upon release, make this 51## the same). Use no dots in the name, since it must work on VMS and MS-DOS. 52VERSION = 2-8-9 53 54##this is the name of the directory the lynx source code is in. 55##(e.g., lynx2-8-9, not the full path) 56lynxdir= lynx$(VERSION) 57lynxname= lynx$(VERSION) 58 59## The 'DESTDIR' variable allows you to install the program into a different 60## location, e.g., for packaging, without affecting the compiled-in pathnames. 61DESTDIR= @DESTDIR@ 62 63## Where you want lynx installed 64bindir= @bindir@ 65BINDIR= $(DESTDIR)$(bindir) 66 67## Where you want the lynx man file installed 68mandir= @mandir@/man1 69MANDIR= $(DESTDIR)$(mandir) 70 71## Where you want the lynx.cfg file installed 72sysconfdir= @sysconfdir@ 73SYSCONFDIR= $(DESTDIR)$(sysconfdir) 74 75## Where you want the doc-files installed 76datarootdir= @datarootdir@ 77docdir = @datadir@/lynx_doc 78DOCDIR = $(DESTDIR)$(docdir) 79 80## Where you want the help-files installed 81helpdir = @datadir@/lynx_help 82HELPDIR = $(DESTDIR)$(helpdir) 83 84##set the relative location of the WWW library Implementation directory, 85##from this directory 86##do not set this to be an absolute path!!! 87WWW_DIR = $(builddir)/WWW/Library/Implementation 88 89##set the relative location of the message-file directory 90##do not set this to be an absolute path!!! 91PO_DIR = $(builddir)/po 92PO_SRCDIR = $(srcdir)/po 93 94##set the relative location of the main source-directory 95##do not set this to be an absolute path!!! 96SRC_DIR = $(builddir)/src 97 98##set the relative location of the character-translation data directory 99##do not set this to be an absolute path!!! 100CHR_DIR = $(SRC_DIR)/chrtrans 101 102## Path to gzip that will compress the help files. 103## It will be used when --enable-gzip-help is set by configure. 104## Leave *both* empty if you don't want to gzip help files. 105COMPRESS_PROG=@COMPRESS_PROG@ 106COMPRESS_EXT=@COMPRESS_EXT@ 107 108# Path of scripts directory 109scripts_dir=$(srcdir)/scripts 110 111MAKE_RECUR = $(MAKE) @cf_cv_makeflags@ DESTDIR="$(DESTDIR)" CC="$(CC)" 112 113@LYNXCFG_MAKE@CFG2HTML = alphatoc.html body.html cattoc.html 114 115# !!!!!!!!!!! SUN resolv LIBRARY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 116# To include resolv in the LIBS="" list for SUN 3, 4 or Solaris OS, 117# point RESOLVLIB to that library. You need this if you get the message 118# "Alert!: Unable to connect to remote host" whenever you try to 119# access a host other than localhost and have made Lynx without it. 120# See the PROBLEMS file for more information. 121#RESOLVLIB= -lresolv 122 123# !!!!!!!!!!!!! DIRECT WAIS ACCESS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 124# If you are adding direct wais access you must fill in the 125# location of wais.a, client.a and the standard math library, libm.a. 126# You can pick up the most current freeWAIS sources from 127# ftp://ftp.cnidr.org/pub/NIDR.tools/freewais 128# If you are using freeWAIS-0.202 or older, include -DDECLARE_WAIS_LOGFILES 129# in your SITE_DEFS. 130# Please put an ABSOLUTE address here if you want it to work! 131#WAISLIB= ../../freeWAIS-0.202/bin/client.a ../../freeWAIS-0.202/bin/wais.a /usr/lib/libm.a 132 133# !!!!!!!!!!!!! SLANG Support (For color version of Lynx). !!!!!!!!!!!!!!!! 134# The slang library is an alternative to curses, developed by John E. Davis 135# (davis@space.mit.edu). Version 0.99-27 or higher is available from 136# ftp://space.mit.edu/pub/davis 137# It provides color support for Lynx. 138 139# !!!!!!!!!!!!! NCURSES Support (For color version of Lynx). !!!!!!!!!!!!!! 140# If you need ncurses, the latest version can always be found 141# in ftp://ftp.invisible-island.net/ncurses/ 142# or ftp://ftp.gnu.org/pub/gnu/ 143 144# Also be sure to check out the compilation symbols in userdefs.h 145# before building Lynx! 146 147# If you apply patches which require linking to site-specific libraries, set 148# SITE_LIBS to those libraries. 149SITE_LIBS= # Your libraries here 150 151# Set SITE_LYDEFS to one or more of the defines for the WWW Library: 152SITE_LYDEFS = # Your defines here 153 154# Set SITE_DEFS to one or more of the defines for lynx below: 155SITE_DEFS = # Your defines here 156 157# defines for which there are no configure options: 158# -DIGNORE_CTRL_C Define if Control-C shouldn't exit lynx. 159# -DNO_RULES Disables CERN-style access rules (see lynx.cfg). 160# -DUSE_VASPRINT Use vasprintf() function 161# 162# if you are linking to freeWAIS-0.202 or older, you should define this 163# in SITE_DEFS 164# 165# -DDECLARE_WAIS_LOGFILES 166# 167# if you have an SVR4 system with the "type any key" problem, try defining 168# this in LYFLAGS (SITE_LYDEFS) and SITE_DEFS 169# 170# -DSVR4_BSDSELECT 171# 172# Many other defines have configure options (see INSTALLATION, Section II-1c.): 173# 174# for installation of local execution links, please see the file userdefs.h 175 176WWW_CFLAGS = \ 177 LY_CFLAGS="$(CFLAGS)" \ 178 CPPFLAGS="$(CPPFLAGS)" \ 179 LYFLAGS="$(SITE_LYDEFS)" 180 181CHR_CFLAGS = \ 182 SITE_DEFS="$(SITE_DEFS)" \ 183 BUILD_CFLAGS="$(BUILD_CFLAGS)" \ 184 BUILD_CPPFLAGS="$(BUILD_CPPFLAGS)" \ 185 BUILD_LDFLAGS="$(BUILD_LDFLAGS)" \ 186 BUILD_LIBS="$(BUILD_LIBS)" \ 187 BUILD_CC="$(BUILD_CC)" 188 189SRC_CFLAGS = \ 190 CFLAGS="$(CFLAGS)" \ 191 CPPFLAGS="$(CPPFLAGS)" \ 192 LDFLAGS="$(LDFLAGS)" \ 193 LIBS="$(LIBS) $(RESOLVLIB) $(WAISLIB) $(SITE_LIBS)" \ 194 SITE_DEFS="$(SITE_DEFS)" \ 195 WWWINC=$(WWW_DIR) \ 196 WWWLIB="../$(WWW_DIR)/libwww.a" 197 198actual_PROG = `echo lynx|sed '@program_transform_name@'` 199binary_PROG = $(actual_PROG)$x 200 201all lynx$x: cfg_defs.h LYHelp.h 202@MSG_DIR_MAKE@ $(SHELL) $(scripts_dir)/fixtext.sh $(srcdir)/LYMessages_en.h >LYMessages.c 203@MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) 204 cd $(WWW_DIR) && $(MAKE_RECUR) $(WWW_CFLAGS) 205 cd $(CHR_DIR) && $(MAKE_RECUR) all $(CHR_CFLAGS) 206 cd $(SRC_DIR) && $(MAKE_RECUR) all $(SRC_CFLAGS) 207 208lint: 209 cd $(WWW_DIR) && $(MAKE_RECUR) LINT="$(LINT)" $(WWW_CFLAGS) $@ 210 cd $(SRC_DIR) && $(MAKE_RECUR) LINT="$(LINT)" $(SRC_CFLAGS) $@ 211 cd $(CHR_DIR) && $(MAKE_RECUR) LINT="$(LINT)" $@ 212 213tags: 214 cd $(WWW_DIR) && $(MAKE_RECUR) $(WWW_CFLAGS) $@ 215 cd $(SRC_DIR) && $(MAKE_RECUR) $(SRC_CFLAGS) $@ 216 cd $(CHR_DIR) && $(MAKE_RECUR) $@ 217 218etags: 219 $(ETAGS) *.[ch] */*.[ch] */*/*.[ch] */*/*/*.[ch] 220 221help: 222 @echo 223 @echo "Please run make with one of the following arguments" 224 @echo "all -- to make the executable, put it in this directory" 225 @echo "clean -- removes all '$o' and 'core' files" 226 @echo "distclean -- removes all generated files" 227 @echo "depend -- use makedepend to generate header-dependencies" 228 @echo 229 230##Miscellaneous actions 231clean: 232 rm -f WWW/Library/*/*.[aoib] 233 rm -f WWW/Library/*/.created 234 cd $(WWW_DIR) && $(MAKE_RECUR) $@ 235 cd $(SRC_DIR) && $(MAKE_RECUR) $@ 236@MSG_DIR_MAKE@ rm -f LYMessages.c 237@MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) $@ 238 rm -f *.b $(SRC_DIR)/lynx$x *.leaks cfg_defs.h LYHelp.h lint.* 239@LYNXCFG_MAKE@ -rm -f $(CFG2HTML) 240 rm -f help_files.sed 241 rm -f core *.core 242 243depend: cfg_defs.h LYHelp.h 244 cd $(WWW_DIR) && $(MAKE_RECUR) $@ 245 cd $(SRC_DIR) && $(MAKE_RECUR) $@ 246 247distclean: clean 248 -rm -f WWW/Library/*/*~ 249 -rm -f WWW/Library/*/*.bak 250 -rm -rf $(SRC_DIR)/obsolete 251 -cd $(WWW_DIR) && $(MAKE_RECUR) $@ 252 -cd $(SRC_DIR) && $(MAKE_RECUR) $@ 253 -cd $(CHR_DIR) && $(MAKE_RECUR) $@ 254@MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) $@ 255@MSG_DIR_MAKE@ -rmdir $(PO_DIR) 256 -rm -f *~ *.bak *.sav tags TAGS 257 -rm -f $(WWW_DIR)/makefile $(SRC_DIR)/makefile $(CHR_DIR)/makefile 258@SRCDIR_CLEAN@ -rmdir $(WWW_DIR) && rmdir WWW/Library && rmdir WWW 259@SRCDIR_CLEAN@ -rmdir $(CHR_DIR) && rmdir $(SRC_DIR) 260 -rm -f makefile lynx_cfg.h config.status config.log config.cache 261 -rm -f lynx$x 262 263maintainer-clean: distclean 264 -find . -type f -name '*.rej' -exec rm -f {} \; 265 -find . -type f -name '*.orig' -exec rm -f {} \; 266 -rm -rf WWW/Library/*/obsolete 267 -rm -f Lynx.prj .*_aux 268 269# Directory containing reference source for patch generation, 270# either absolute or relative to $(top_srcdir)/.. 271REFDIR=orig/$(lynxdir) 272 273lynx.patch: $(top_srcdir) $(top_srcdir)/CHANGES 274 - cd $(top_srcdir)/.. && cd $(REFDIR) && { rm -f \ 275 config.log \ 276 config.status \ 277 lynx_cfg.h \ 278 ; \ 279 for I in . $(SRC_DIR) $(WWW_DIR); do ( set +e; \ 280 ( set -x; cd $$I && rm -f *.orig *.rej makefile ); : ); \ 281 done; } 282 ( cd $(top_srcdir)/..; echo "%%% Created `date` by target $@. %%%"; \ 283 if diff -bru /dev/null /dev/null; \ 284 then diff -bru $(REFDIR) $(lynxdir); \ 285 else diff -brc $(REFDIR) $(lynxdir); fi ) \ 286 | grep -v '^Common' \ 287 | grep -v '^Binary files ' \ 288 | grep -v '^Only ' | tee $@ | egrep '^\-\-\- .*$(lynxdir)' 289 290install: install-bin install-man install-cfg @INSTALL_LSS@ 291 @echo 292 @echo "Use $(MAKE) install-help to install the help-files" 293 @echo "Use $(MAKE) install-doc to install extra documentation files" 294 @echo 295 296install-full: install install-help install-doc 297 @echo Full installation complete. 298 299install-bin: $(BINDIR) lynx$x 300@MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) install 301 @ECHO_CC@$(SHELL) -c "P=$(binary_PROG); \ 302 if test -f $(BINDIR)/$$P ; then \ 303 mv -f $(BINDIR)/$$P $(BINDIR)/$$P.old; fi" 304 $(INSTALL_PROGRAM) lynx$x $(BINDIR)/$(binary_PROG) 305 306install-man : $(MANDIR) 307 $(INSTALL_DATA) $(srcdir)/lynx.man $(MANDIR)/$(actual_PROG).1 308 309install-doc : $(DOCDIR) $(HELPDIR) 310 @echo Copying sample files 311 $(SHELL) -c '\ 312 ( umask 022; \ 313 cd $(srcdir) && \ 314 $(TAR_UP) C[HO]* PROBLEMS README docs samples test ) | \ 315 ( umask 022; \ 316 cd $(DOCDIR) && \ 317 chmod -R u+w . && $(TAR_DOWN) )' 318 $(SHELL) -c 'if test "$(COMPRESS_PROG)" != "" ; then \ 319 (cd $(DOCDIR) && $(COMPRESS_PROG) -f docs/CHANGES*.[0-9] docs/*.announce ) \ 320 fi' 321 $(SHELL) -c 'for name in COPYING COPYHEADER; do \ 322 cd $(HELPDIR) && rm -f $$name ;\ 323 r= ;\ 324 test "$(LN_S)" = "ln -s" || r=`echo $(helpdir)|sed -e "s%[^/]\+%..%g" -e "s%^.%%"`; \ 325 cd $(HELPDIR) && ( $(LN_S) $$r$(docdir)/$$name . || cp $(DOCDIR)/$$name . );\ 326 done' 327 -$(SHELL) -c 'case `id|sed -e "s/(.*//"` in uid=0) chown -R root $(DOCDIR);; esac' 328 329# HPUX 'sed' does not seem to like '=' as pattern delimiter. 330# We cannot use '%' because it may appear in a URL. 331# Andrew filesystem uses '@'. 332# So we limit sed delimiters to '!' and '%', depending on the expected text. 333FIX_SED = tr '=' '"' 334 335LYNX_URL='@HOMEPAGE_URL@release/breakout' 336LYNXDOCS_URL='$(LYNX_URL)/docs/' 337LYNXHELP_URL='$(LYNX_URL)/lynx_help/' 338 339@LYNXCFG_MAKE@$(CFG2HTML) : 340@LYNXCFG_MAKE@ @echo 'Making htmlized lynx.cfg' 341@LYNXCFG_MAKE@ cd $(SRC_DIR) && $(MAKE_RECUR) LYReadCFG.i 342@LYNXCFG_MAKE@ @-rm -f $(CFG2HTML) 343@LYNXCFG_MAKE@ sed -n -e '/Config_Type *Config_Table/,/{0, *0, *0}/ p' $(SRC_DIR)/LYReadCFG.i | \ 344@LYNXCFG_MAKE@ sed -e 's/ *{ *"\([^"]*\)".*/\1/' | \ 345@LYNXCFG_MAKE@ perl $(scripts_dir)/cfg2html.pl -ams $(srcdir)/lynx.cfg 346@LYNXCFG_MAKE@ -rm -f $(SRC_DIR)/LYReadCFG.i 347 348help_files.sed : makefile $(srcdir)/lynx_help/help_files.txt 349 @echo Constructing sed-script $@ 350 @-rm -f $@ help_files.tmp 351 @cat $(srcdir)/lynx_help/help_files.txt > help_files.tmp 352@LYNXDOC_MAKE@ @ECHO_CC@echo 's!$(LYNXDOCS_URL)!file://$(docdir)/!g' >> help_files.tmp 353@LYNXCFG_MAKE@ @ECHO_CC@echo 's!$(LYNXHELP_URL)alphatoc.html!alphatoc.html!g' >> help_files.tmp 354@LYNXCFG_MAKE@ @ECHO_CC@echo 's!$(LYNXHELP_URL)cattoc.html!cattoc.html!g' >> help_files.tmp 355@LYNXCFG_MAKE@ @ECHO_CC@echo 's!alphatoc\.html!alphatoc.html$(COMPRESS_EXT)!g' >> help_files.tmp 356@LYNXCFG_MAKE@ @ECHO_CC@echo 's!cattoc\.html!cattoc.html$(COMPRESS_EXT)!g' >> help_files.tmp 357@LYNXCFG_MAKE@ @ECHO_CC@echo 's!body\.html!body.html$(COMPRESS_EXT)!g' >> help_files.tmp 358 @ECHO_CC@sed -e '/^#/d' -e '/^$$/d' \ 359 -e 's%\(.*\)=\(.*\@.*\)$$%s=@\1@=\2=g%' \ 360 -e 's%\(.*\)=\(http:.*\)$$%s=@\1@=\2=g%' \ 361 -e 's%\(.*\)=\(ftp:.*\)$$%s=@\1@=\2=g%' \ 362 -e 's%\(.*\)=\(.*\.html\)$$%s=@\1@=\2$(COMPRESS_EXT)=g%' \ 363 help_files.tmp | $(FIX_SED) > $@ 364 @echo Appending interim-fix for existing html files to $@ 365 @ECHO_CC@sed -e '/^#/d' -e '/[:@]/d' -e '/^$$/d' \ 366 -e 's%\(.*\)=\(.*\.html\)$$%s=\2=\2$(COMPRESS_EXT)=g%' \ 367 -e 's%\.html=%\\.html=%' \ 368 help_files.tmp | $(FIX_SED) >> $@ 369 @ECHO_CC@if test -n "$(COMPRESS_EXT)"; then echo "s%\\(\$(COMPRESS_EXT)\\)*\$(COMPRESS_EXT)%$(COMPRESS_EXT)%g" >> $@; fi 370 @-rm -f help_files.tmp 371 372install-help : $(CFG2HTML) help_files.sed $(HELPDIR) $(SYSCONFDIR) 373 -$(SHELL) -c 'if cd "$(HELPDIR)" ; then \ 374 WD=`pwd` ; \ 375 TAIL=`basename "$(helpdir)"` ; \ 376 HEAD=`echo "$$WD"|sed -e "s,/$${TAIL}$$,,"` ; \ 377 test "x$$WD" != "x$$HEAD" && rm -fr * ; \ 378 fi' 379 test -d $(HELPDIR)/keystrokes || mkdir $(HELPDIR)/keystrokes 380 @echo Translating/copying html files 381@LYNXCFG_MAKE@ @$(SHELL) -c 'for f in $(CFG2HTML) ; do \ 382@LYNXCFG_MAKE@ sed -f help_files.sed $$f > $(HELPDIR)/$$f ; \ 383@LYNXCFG_MAKE@ done' 384 @ECHO_CC@$(SHELL) -c 'sed_prog=`pwd`/help_files.sed && \ 385 cd $(srcdir)/lynx_help && \ 386 dirs=keystrokes && \ 387 files="*.html */*.html" && \ 388 for f in $$files ; do \ 389 sed -f $$sed_prog $$f > $(HELPDIR)/$$f ; \ 390 done && \ 391 if test "$(COMPRESS_PROG)" != "" ; then \ 392 (cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \ 393 fi' 394 @echo Updating $(sysconfdir)/lynx.cfg 395 @ECHO_CC@$(SHELL) -c \ 396 'if test -f $(SYSCONFDIR)/lynx.cfg ; then \ 397 mv $(SYSCONFDIR)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \ 398 else \ 399 cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \ 400 fi' 401 @echo Updating $(srcdir)/lynx.cfg.sample 402 @cp $(srcdir)/lynx.cfg $(srcdir)/lynx.tmp 403 @echo Updating $(srcdir)/lynx.cfg.sample to point to installed help-files 404 @ECHO_CC@sed -e '/^HELPFILE:http/s!^!#!' \ 405 -e '/^#HELPFILE:file/s!#!!' \ 406 $(SYSCONFDIR)/lynx.tmp | \ 407 $(SHELL) $(scripts_dir)/cfg_path.sh lynx_help $(helpdir) | \ 408 $(SHELL) $(scripts_dir)/cfg_path.sh lynx_doc $(helpdir) | \ 409 sed -e '/^HELPFILE:file/s!$$!$(COMPRESS_EXT)!' \ 410 -e '/^HELPFILE:file/s!$(COMPRESS_EXT)$(COMPRESS_EXT)$$!$(COMPRESS_EXT)!' \ 411 >$(SYSCONFDIR)/lynx.cfg.sample 412 chmod 644 $(SYSCONFDIR)/lynx.cfg.sample 413 -rm -f $(SYSCONFDIR)/lynx.tmp 414 -[ ! -f $(SYSCONFDIR)/lynx.cfg ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.cfg.sample $(SYSCONFDIR)/lynx.cfg 415 -[ ! -f $(SYSCONFDIR)/lynx.lss ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.lss.sample $(SYSCONFDIR)/lynx.lss 416 417LYHelp.h : help_files.sed $(srcdir)/LYHelp.hin 418 @echo Creating $@ 419 @sed -f help_files.sed $(srcdir)/LYHelp.hin > $@ 420 @echo '**********************************************' 421 @echo 422 @$(SHELL) -c 'if test "$(COMPRESS_PROG)" = "" ; then \ 423 echo " Help files will NOT be gzipped."; \ 424 else \ 425 echo " Help links point to compressed files"; \ 426 echo " To access them properly you have to type"; \ 427 echo " make install-help"; \ 428 fi' 429 @echo 430 @echo '**********************************************' 431 432cfg_defs.h : $(scripts_dir)/cfg_defs.sh $(scripts_dir)/cfg_edit.sh config.cache lynx_cfg.h 433 @rm -f $@ 434 $(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)' 435 436install-cfg : $(SYSCONFDIR) 437 @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL) -m 644" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg.sample 438 439install-lss : $(SYSCONFDIR) 440 @$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.sample 441 442uninstall :: 443@MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) uninstall 444 -rm -f $(BINDIR)/$(binary_PROG) 445 -rm -f $(MANDIR)/$(actual_PROG).1 446 -rm -f $(SYSCONFDIR)/lynx.cfg.sample 447 -rm -f $(SYSCONFDIR)/lynx.lss.sample 448 449uninstall \ 450uninstall-help :: 451 -$(SHELL) -c 'if test -d "$(HELPDIR)" ; then \ 452 WD=`cd "$(HELPDIR)" && pwd` ; \ 453 TAIL=`basename "$(helpdir)"` ; \ 454 HEAD=`echo "$$WD"|sed -e "s,/$${TAIL}$$,,"` ; \ 455 test "x$$WD" != "x$$HEAD" && rm -rf "$(HELPDIR)"; \ 456 fi' 457 458uninstall \ 459uninstall-doc :: 460 -$(SHELL) -c 'if test -d "$(DOCDIR)" ; then \ 461 WD=`cd "$(DOCDIR)" && pwd` ; \ 462 TAIL=`basename "$(docdir)"` ; \ 463 HEAD=`echo "$$WD"|sed -e "s,/$${TAIL}$$,,"` ; \ 464 test "x$$WD" != "x$$HEAD" && rm -rf "$(DOCDIR)"; \ 465 fi' 466 -$(SHELL) -c 'if test -d "$(HELPDIR)" ; then \ 467 WD=`cd "$(HELPDIR)" && pwd` ; \ 468 TAIL=`basename "$(helpdir)"` ; \ 469 HEAD=`echo "$$WD"|sed -e "s,/'$${TAIL}'$$,,"` ; \ 470 test "x$$WD" != "x$$HEAD" ; \ 471 cd "$(HELPDIR)" && rm -f COPYING COPYHEADER ; \ 472 fi' 473 474update-po: 475 rsync -Lrtvz translationproject.org::tp/latest/lynx/ $(PO_SRCDIR) 476 test -f $(PO_SRCDIR)/makefile && cd $(PO_SRCDIR) && $(MAKE_RECUR) $@ 477 478preinstall : 479 @ echo '' 480 @ echo '** Configuration summary for LYNX $(LYNX_VERSION):' 481 @ echo '' 482 @ echo ' program name: '$(actual_PROG) 483 @ echo '' 484 @ echo ' bin directory: '$(BINDIR) 485 @ echo ' config directory: '$(SYSCONFDIR) 486 @ echo ' man directory: '$(MANDIR) 487 @ echo ' help directory: '$(HELPDIR) 488 @ echo ' doc directory: '$(DOCDIR) 489 490$(BINDIR) \ 491$(MANDIR) \ 492$(SYSCONFDIR) \ 493$(HELPDIR) \ 494$(DOCDIR) : 495 mkdir -p $@ 496