about summary refs log tree commit diff stats
path: root/makefile.in
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2002-01-02 01:55:54 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2002-01-02 01:55:54 -0500
commitd83d4af153de5a3cfacc4ce014183fd36e0cd920 (patch)
tree9e662d0b0ea4548c781e16e0159c0146f9dd3105 /makefile.in
parent90d33dc9d0323ee3faf8477fcbddb376a6fcdb9a (diff)
downloadlynx-snapshots-d83d4af153de5a3cfacc4ce014183fd36e0cd920.tar.gz
snapshot of project "lynx", label v2-8-5dev_6
Diffstat (limited to 'makefile.in')
-rw-r--r--makefile.in30
1 files changed, 16 insertions, 14 deletions
diff --git a/makefile.in b/makefile.in
index fc75aa74..53ed4bde 100644
--- a/makefile.in
+++ b/makefile.in
@@ -327,8 +327,8 @@ help_files.sed : makefile $(srcdir)/lynx_help/help_files.txt
 	@ECHO_CC@if test -n "$(COMPRESS_EXT)"; then echo 's%\$(COMPRESS_EXT)\$(COMPRESS_EXT)%$(COMPRESS_EXT)%g' >> $@; fi
 	@-rm -f help_files.tmp
 
-install-help : help_files.sed $(HELPDIR)
-	(cd $(HELPDIR) && WD=`pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_help$$!!'` && test $$WD != $$HEAD && rm -rf *)
+install-help : help_files.sed $(HELPDIR) $(HELPDIR)/keystrokes
+	- (cd $(HELPDIR) && WD=`pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_help$$!!'` && test $$WD != $$HEAD && rm -f * keystrokes/*)
 @LYNXCFG_MAKE@	@echo 'Making htmlized lynx.cfg'
 @LYNXCFG_MAKE@	cd src && make LYReadCFG.i
 @LYNXCFG_MAKE@	@-rm -f alphatoc.html body.html cattoc.html
@@ -336,23 +336,20 @@ install-help : help_files.sed $(HELPDIR)
 @LYNXCFG_MAKE@	sed  -e 's/ *{ *"\([^"]*\)".*/\1/' | \
 @LYNXCFG_MAKE@	perl $(srcdir)/scripts/cfg2html.pl -ms $(srcdir)/lynx.cfg
 	@echo Translating/copying html files
-	@cat help_files.sed > $(HELPDIR)/help_files.sed
 @LYNXCFG_MAKE@	@$(SHELL) -c 'for f in alphatoc.html body.html cattoc.html ; do \
-@LYNXCFG_MAKE@		sed -f $(HELPDIR)/help_files.sed $$f > $(HELPDIR)/$$f ; \
+@LYNXCFG_MAKE@		sed -f help_files.sed $$f > $(HELPDIR)/$$f ; \
 @LYNXCFG_MAKE@		done'
 @LYNXCFG_MAKE@	-rm -f src/LYReadCFG.i
-	@ECHO_CC@$(SHELL) -c 'cd $(srcdir)/lynx_help && ( \
-		dirs=keystrokes; \
-		(cd $(HELPDIR) && mkdir $$dirs 2>/dev/null ) ; \
-		files="*.html */*.html" ; \
+	@ECHO_CC@$(SHELL) -c 'sed_prog=`pwd`/help_files.sed && \
+		cd $(srcdir)/lynx_help && \
+		dirs=keystrokes && \
+		files="*.html */*.html" && \
 		for f in $$files ; do \
-			sed -f $(HELPDIR)/help_files.sed $$f > $(HELPDIR)/$$f ; \
-		done ; \
+			sed -f $$sed_prog $$f > $(HELPDIR)/$$f ; \
+		done && \
 		if test "$(COMPRESS_PROG)" != "" ; then \
 			(cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \
-		fi ; \
-		)'
-	@-rm -f $(HELPDIR)/help_files.sed
+		fi'
 	@echo Updating $(libdir)/lynx.cfg
 	$(SHELL) -c 'if test -f $(LIBDIR)/lynx.cfg ; then \
 		mv $(LIBDIR)/lynx.cfg $(LIBDIR)/lynx.tmp ; \
@@ -413,7 +410,12 @@ uninstall-doc ::
 	-test -d $(DOCDIR) && WD=`cd $(DOCDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_doc$$!!'` && test $$WD != $$HEAD && rm -rf $(DOCDIR)
 	-test -d $(HELPDIR) && WD=`cd $(HELPDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_help$$!!'` && test $$WD != $$HEAD && cd $(HELPDIR) && rm -f COPYING COPYHEADER
 
-$(BINDIR) $(MANDIR) $(LIBDIR) $(HELPDIR) $(DOCDIR) :
+$(BINDIR) \
+$(MANDIR) \
+$(LIBDIR) \
+$(HELPDIR) \
+$(HELPDIR)/keystrokes \
+$(DOCDIR) :
 	$(srcdir)/mkdirs.sh $@
 etags:
 	etags -r "/\(PRIVATE\|PUBLIC\)[ \t]+\([a-zA-Z_][a-zA-Z_0-1]*[ \t*]+\)*\([a-zA-Z_][a-zA-Z_0-1]*\)[ \t]+\(ARGS[0-9]\|NOARGS\)/\3/" *.[ch] */*.[ch] */*/*.[ch] */*/*/*.[ch]