about summary refs log tree commit diff stats
path: root/makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.in')
-rw-r--r--makefile.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/makefile.in b/makefile.in
index 3742c604..c0fb9767 100644
--- a/makefile.in
+++ b/makefile.in
@@ -23,6 +23,7 @@ LIBS		= @LIBS@
 INSTALL		= @INSTALL@
 INSTALL_PROGRAM	= @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
+LN_S		= @LN_S@
 
 ## 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.
@@ -321,7 +322,7 @@ install-doc : $(docdir)
 FIX_SED = tr '=' '%'
 #FIX_SED = cat
 
-install-help : $(helpdir)
+install-help : $(docdir) $(helpdir)
 	(cd $(helpdir) && rm -rf *)
 	@echo Constructing sed-script
 	@ECHO_CC@sed	-e '/^#/d' -e '/^$$/d' \
@@ -368,13 +369,18 @@ install-help : $(helpdir)
 		$(libdir)/lynx.tmp >$(libdir)/lynx.cfg
 	chmod 644 $(libdir)/lynx.cfg
 	-rm -f $(libdir)/lynx.tmp
+	$(INSTALL_DATA) COPYHEADER $(docdir)/COPYHEADER
+	$(INSTALL_DATA) COPYING    $(docdir)/COPYING
+	cd $(helpdir) && ( \
+		ln $(docdir)/COPYHEADER . || cp $(docdir)/COPYHEADER . ; \
+		ln $(docdir)/COPYING    . || cp $(docdir)/COPYING . )
 
 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%\(.*\)=\(.*\@.*\)$$%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