about summary refs log tree commit diff stats
path: root/makefile.in
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-10 19:47:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-10 19:47:00 -0500
commitd3f9d5478df478427c2aa5db4507ddd0a38f0eb6 (patch)
treee27eacd6bbda653dd77f11cc020b9e0a59f7f4fc /makefile.in
parent18024037b515bfff83e0230b35151babe6005e18 (diff)
downloadlynx-snapshots-d3f9d5478df478427c2aa5db4507ddd0a38f0eb6.tar.gz
snapshot of project "lynx", label v2-8-2dev_2
Diffstat (limited to 'makefile.in')
-rw-r--r--makefile.in163
1 files changed, 124 insertions, 39 deletions
diff --git a/makefile.in b/makefile.in
index ffe0dafe..53bdf0ee 100644
--- a/makefile.in
+++ b/makefile.in
@@ -8,6 +8,7 @@ x		= @PROG_EXT@
 @SET_MAKE@
 prefix		= @prefix@
 exec_prefix	= @exec_prefix@
+top_srcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= $(srcdir)
 
@@ -22,10 +23,14 @@ INSTALL		= @INSTALL@
 INSTALL_PROGRAM	= @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 
+## This is the version which we are developing (or, upon release, make this
+## the same).  Use no dots in the name, since it must work on VMS and MS-DOS.
+VERSION		= 2-8-1
+
 ##this is the name of the directory the lynx source code is in.
-##(e.g. lynx2-8, not the full path)
-lynxdir= lynx2-8
-lynxname= lynx2-8
+##(e.g. lynx2-8-1, not the full path) 
+lynxdir= lynx$(VERSION)
+lynxname= lynx$(VERSION)
 
 ## Where you want lynx installed
 bindir= @bindir@
@@ -36,17 +41,28 @@ mandir= @mandir@/man1
 ## Where you want the lynx.cfg file installed
 libdir= @libdir@
 
+## Where you want the doc-files installed
+docdir= @libdir@/lynx_doc
+
 ## Where you want the help-files installed
 helpdir= @libdir@/lynx_help
 
-installbin= @INSTALL_PROGRAM@ -s -m 755
-installdoc= @INSTALL_DATA@
+## Where your locale data is
+# datadir = @datadir@
+datadir = /usr/local/share
+localedir = $(datadir)/locale
 
 ##set the relative location of the WWW library Implementation directory,
 ##from this directory
 ##do not set this to be an absolute path!!!
 WWWINC= WWW/Library/Implementation
 
+## Path to gzip that will compress the help files.
+## It will be used when --enable-gzip-help is set by configure.
+## Leave *both* empty if you don't want to gzip help files.
+COMPRESS_PROG=@COMPRESS_PROG@
+COMPRESS_EXT=@COMPRESS_EXT@
+
 # !!!!!!!!!!! SUN resolv LIBRARY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 # To include resolv in the LIBS="" list for SUN 3, 4 or Solaris OS,
 # point RESOLVLIB to that library.  You need this if you get the message
@@ -55,20 +71,6 @@ WWWINC= WWW/Library/Implementation
 # See the PROBLEMS file for more information.
 #RESOLVLIB= -lresolv
 
-# !!!!!!!!!!! Alternate socket functions for SOCKS !!!!!!!!!!!!!!!!!!
-# To make a SOCKSified lynx, include -DSOCKS in your SITE_LYDEFS and
-# SITE_DEFS, below, and point SOCKSLIB to your SOCKS library.  Note
-# that you may have problems accessing FTP servers.  Also, instead of
-# SOCKSifying lynx for use behind a firewall, you are better off if
-# you make it normally, and set it up to use a proxy server.  You can
-# SOCKSify the proxy server, and it will handle all clients, not just
-# Lynx (see the INSTALLATION file in this distribution).  If your SOCKS
-# server was compiled to use the short version of Rbind, also include
-# -DSHORTENED_RBIND in your SITE_LYDEFS and SITE_DEFS.  If you do
-# SOCKSify lynx, you can turn off SOCKS proxy usage via a -nosocks
-# command line switch.
-#SOCKSLIB= /usr/local/lib/libsocks.a
-
 # !!!!!!!!!!!!!  DIRECT WAIS ACCESS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 # If you are adding direct wais access you must fill in the
 # location of wais.a, client.a and the standard math library, libm.a.
@@ -110,7 +112,6 @@ SITE_DEFS = # Your defines here
 # -DNO_CPU_LIMIT   Disables Max CPU timeout (includes CLOCKS_PER_SECOND)
 # -DSHORTENED_RBIND  For a SOCKSified lynx with the short version of Rbind.
 # -DSLANG_MBCS_HACK prevent cutoff lines when using UTF8 console (slang only)
-# -DSOCKS          For making a SOCKSified lynx.
 #
 # if you are linking to freeWAIS-0.202 or older, you should define this
 # in SITE_DEFS
@@ -131,21 +132,25 @@ SITE_DEFS = # Your defines here
 # for their inet_addr(host) calls.
 #
 # -DDGUX_OLD
-#
-# if you would like logging of client requests via syslog(), you should
-# define this in SITE_DEFS
-#
-# -DSYSLOG_REQUESTED_URLS
 
 # defines which have configure options   (see INSTALLATION, Section II-1c.):
 # -DARCHIVE_ONLY
 # -DDIRED_SUPPORT
+# -DDISP_PARTIAL
+# -DDONT_TRACK_INTERNAL_LINKS
+# -DEXEC_LINKS
+# -DEXEC_SCRIPTS
 # -DEXP_CHARTRANS_AUTOSWITCH
+# -DEXP_PERSISTENT_COOKIES
 # -DLINKEDSTYLES
 # -DLONG_LIST
+# -DLYNXCGI_LINKS
 # -DLY_FIND_LEAKS
 # -DNCURSES
 # -DNO_CHANGE_EXECUTE_PERMS
+# -DNO_EXTENDED_HTMLDTD
+# -DOPTIONS_FORMS
+# -DOPTIONS_MENU
 # -DNO_PARENT_DIR_REFERENCE
 # -DNSL_FORK
 # -DOK_GZIP
@@ -154,16 +159,24 @@ SITE_DEFS = # Your defines here
 # -DOK_TAR
 # -DOK_UUDECODE
 # -DOK_ZIP
+# -DSOCKS
+# -DSYSLOG_REQUESTED_URLS
 # -DUNDERLINE_LINKS
 # -DUSE_COLOR_STYLE
+# -DUSE_DEFAULT_COLORS
+# -DUSE_EXTERNALS
 # -DUSE_HASH
 # -DUSE_SLANG
+# -DUSE_SOCKS5
 # -DUSE_ZLIB
 #
 # for installation of local execution links, please see the file userdefs.h
 
 # TESTED: Linux FreeBSD SunOS Solaris IRIX CLIX HP-UX AIX SCO
-all lynx$x:
+all lynx$x: cfg_defs.h LYHelp.h
+	@MSG_DIR_MAKE@sh $(srcdir)/fixtext.sh $(srcdir)/LYMessages_en.h >LYMessages.c
+	@INTLDIR_MAKE@cd intl && $(MAKE) CC="$(CC)"
+	@MSG_DIR_MAKE@cd po && $(MAKE) CC="$(CC)"
 	cd WWW/Library/unix && $(MAKE) CC="$(CC)" \
 		LY_CFLAGS="$(CFLAGS)" \
 		CPPFLAGS="$(CPPFLAGS)" \
@@ -171,7 +184,7 @@ all lynx$x:
 	cd src && $(MAKE) all CC="$(CC)" \
 		CFLAGS="$(CFLAGS)" \
 		CPPFLAGS="$(CPPFLAGS)" \
-		LIBS="$(LIBS) $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
+		LIBS="$(LIBS) $(RESOLVLIB) $(WAISLIB) $(SITE_LIBS)" \
 		SITE_DEFS="$(SITE_DEFS)" \
 		WWWINC=$(WWWINC) \
 		WWWLIB="../WWW/Library/unix/libwww.a"
@@ -192,9 +205,12 @@ clean:
 	rm -f WWW/Library/*/*.[aob]
 	rm -f WWW/Library/*/.created
 	cd src && $(MAKE) clean
-	rm -f *.b src/lynx$x core Lynx.leaks
+	@MSG_DIR_MAKE@rm -f LYMessages.c
+	@INTLDIR_MAKE@cd intl && $(MAKE) $@
+	@MSG_DIR_MAKE@cd po && $(MAKE) $@
+	rm -f *.b src/lynx$x core Lynx.leaks cfg_defs.h LYHelp.h
 
-depend:
+depend: cfg_defs.h LYHelp.h
 	cd WWW/Library/unix && $(MAKE) $@
 	cd src && $(MAKE) $@
 
@@ -204,6 +220,8 @@ distclean: clean
 	-rm -rf src/obsolete
 	-cd src && $(MAKE) $@
 	-cd src/chrtrans && $(MAKE) $@
+	@INTLDIR_MAKE@cd intl && $(MAKE) $@
+	@MSG_DIR_MAKE@cd po && $(MAKE) $@
 	-rm -f *~ *.bak *.sav
 	-rm -f WWW/Library/unix/makefile src/makefile src/chrtrans/makefile
 	@SRCDIR_CLEAN@-find . -type f -name '*.rej' -exec -rm -f {} \;
@@ -243,33 +261,99 @@ compress: tar
 install: lynx$x install-bin install-man install-cfg @INSTALL_LSS@
 	@echo
 	@echo "Use $(MAKE) install-help to install the help-files"
+	@echo "Use $(MAKE) install-doc to install extra documentation files"
 	@echo
 
 install-bin: $(bindir)
 	-mv -f $(bindir)/lynx$x $(bindir)/lynx.old
-	$(installbin) lynx$x $(bindir)/
+	$(INSTALL_PROGRAM) lynx$x $(bindir)/
 
-install-man : $(mandir) 
-	$(installdoc) $(srcdir)/lynx.man $(mandir)/lynx.1
+install-man : $(mandir)
+	$(INSTALL_DATA) $(srcdir)/lynx.man $(mandir)/lynx.1
 
-install-help : $(helpdir)
-	(cd $(helpdir) && rm -rf *)
-	(cd $(srcdir)/lynx_help && tar cf - . ) | ( cd $(helpdir) && tar xf - )
+install-doc : $(docdir)
+	@echo Copying sample files
 	(cd $(srcdir) && tar cf - C[HO]* PROBLEMS README samples test ) | \
-			       ( cd $(helpdir) && tar xf - )
+			       ( cd $(docdir) && tar xf - )
 	-rm -f $(libdir)/lynx.tmp
+
+# HPUX 'sed' does not seem to like '=' as pattern delimiter.
+FIX_SED = tr '=' '%'
+#FIX_SED = cat
+
+install-help : $(helpdir)
+	(cd $(helpdir) && rm -rf *)
+	@echo Constructing sed-script
+	@ECHO_CC@sed	-e '/^#/d' -e '/^$$/d' \
+		-e 's%\(.*\)=\(.*\@.*\)%s=@\1@=\2=g%' \
+		-e 's%\(.*\)=\(http:.*\)%s=@\1@=\2=g%' \
+		-e 's%\(.*\)=\(ftp:.*\)%s=@\1@=\2=g%' \
+		-e 's%\(.*\)=\(.*\.html\)$$%s=@\1@=\2$(COMPRESS_EXT)=g%' \
+		$(srcdir)/lynx_help/help_files.txt | $(FIX_SED) > \
+		$(helpdir)/help_files.sed
+	@echo Appending interim-fix for existing html files
+	@ECHO_CC@sed	-e '/^#/d' -e '/[:@]/d' -e '/^$$/d' \
+		-e 's%\(.*\)=\(.*\.html\)$$%s=\2=\2$(COMPRESS_EXT)=g%' \
+		-e 's%\.html=%\\.html=%' \
+		$(srcdir)/lynx_help/help_files.txt | $(FIX_SED) >> \
+		$(helpdir)/help_files.sed
+	@echo Translating/copying html files
+	@ECHO_CC@sh -c	'cd $(srcdir)/lynx_help && ( \
+		dirs=keystrokes; \
+		(cd $(helpdir) && mkdir $$dirs 2>/dev/null ) ; \
+		files="*.html */*.html" ; \
+		for f in $$files ; do \
+			sed -f $(helpdir)/help_files.sed $$f > $(helpdir)/$$f ; \
+		done ; \
+		if test "$(COMPRESS_PROG)" != "" ; then \
+			(cd $(helpdir) && $(COMPRESS_PROG) $$files ) \
+		fi ; \
+		)'
+	-rm -f $(helpdir)/help_files.sed
+	@echo Updating $(libdir)/lynx.cfg 
 	sh -c 'if test -f $(libdir)/lynx.cfg ; then \
 		mv $(libdir)/lynx.cfg $(libdir)/lynx.tmp ; \
 	else \
 		cp $(srcdir)/lynx.cfg $(libdir)/lynx.tmp ; \
 	fi'
-	sed	-e '/^HELPFILE:http/s@^@#@' \
+	@echo Updating $(libdir)/lynx.cfg to point to installed help-files
+	@ECHO_CC@sed	-e '/^HELPFILE:http/s@^@#@' \
 		-e '/^#HELPFILE:file/s@#@@' \
 		-e '/^HELPFILE:file/s@/PATH_TO/lynx_help@$(helpdir)@' \
+		-e '/^HELPFILE:file/s@$$@$(COMPRESS_EXT)@' \
+		-e '/^HELPFILE:file/s@$(COMPRESS_EXT)$(COMPRESS_EXT)$$@$(COMPRESS_EXT)@' \
 		$(libdir)/lynx.tmp >$(libdir)/lynx.cfg
 	chmod 644 $(libdir)/lynx.cfg
 	-rm -f $(libdir)/lynx.tmp
 
+LYHelp.h : LYHelp.hin
+	@echo Constructing sed-script
+	@ECHO_CC@sed	-e '/^#/d' -e '/^$$/d' \
+		-e 's%\(.*\)=\(.*\@.*\)%s=@\1@=\2=g%' \
+		-e 's%\(.*\)=\(http:.*\)%s=@\1@=\2=g%' \
+		-e 's%\(.*\)=\(ftp:.*\)%s=@\1@=\2=g%' \
+		-e 's%\(.*\)=\(.*\.html\)$$%s=@\1@=\2$(COMPRESS_EXT)=g%' \
+		$(srcdir)/lynx_help/help_files.txt | $(FIX_SED) > \
+		help_files.sed
+	@echo Creating $@
+	@sed -f help_files.sed $(srcdir)/LYHelp.hin > $@
+	-@rm -f help_files.sed
+	@echo '**********************************************'
+	@echo
+	@sh -c 'if test "$(COMPRESS_PROG)" = "" ; then \
+		echo "       Help files will NOT be gzipped."; \
+	else \
+		echo "       Help links point to compressed files"; \
+		echo "       To access them properly you have to type"; \
+		echo "                 make install-help"; \
+	fi'
+	@echo
+	@echo '**********************************************'
+
+cfg_defs.h : $(srcdir)/cfg_defs.sh
+	@rm -f $@
+	sh $(srcdir)/cfg_defs.sh >$@
+
 install-cfg : $(libdir)
 	-mv -f $(libdir)/lynx.cfg $(libdir)/lynx.oldcfg
 	$(INSTALL_DATA) $(srcdir)/lynx.cfg $(libdir)/lynx.cfg
@@ -283,7 +367,8 @@ uninstall:
 	-rm -f $(mandir)/lynx.1
 	-rm -f $(libdir)/lynx.cfg
 	-rm -f $(libdir)/lynx.lss
-	-rm -rf $(libdir)/lynx_help
+	-rm -rf $(helpdir)
+	-rm -rf $(docdir)
 
-$(bindir) $(mandir) $(libdir) $(helpdir) :
+$(bindir) $(mandir) $(libdir) $(helpdir) $(docdir) :
 	$(srcdir)/mkdirs.sh $@