fix srcdir, top_srcdir

This commit is contained in:
Fumitoshi UKAI
2003-09-22 23:16:45 +00:00
parent 655e0f310b
commit 20f7494492

View File

@@ -19,7 +19,7 @@ sharedstatedir = @sharedstatedir@
srcdir = @srcdir@ srcdir = @srcdir@
sysconfdir = @sysconfdir@ sysconfdir = @sysconfdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
VPATH = $(top_srcdir):. VPATH = $(srcdir):.
DESTDIR = DESTDIR =
CGIBIN_DIR = $(libexecdir)/$(package)/cgi-bin CGIBIN_DIR = $(libexecdir)/$(package)/cgi-bin
@@ -42,27 +42,27 @@ PERL = @PERL@
all: $(LIB_TARGETS) $(AUXBIN_TARGETS) $(HELP_TARGETS) all: $(LIB_TARGETS) $(AUXBIN_TARGETS) $(HELP_TARGETS)
w3mhelp-funcname.pl: w3mhelp-funcname.pl.in ../funcname.tab ../doc/keymap.default ../doc/keymap.lynx w3mhelp-funcname.pl: w3mhelp-funcname.pl.in $(top_srcdir)/funcname.tab $(top_srcdir)/doc/keymap.default $(top_srcdir)/doc/keymap.lynx
@echo "generating w3mhelp-funcname.pl..." @echo "generating w3mhelp-funcname.pl..."
@echo '%funcname = (' > w3mhelp-funcname.pl @echo '%funcname = (' > w3mhelp-funcname.pl
@sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ ][ ]*\([^ ]*\)/'\1', '\2',/p" < ../funcname.tab >> w3mhelp-funcname.pl @sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ ][ ]*\([^ ]*\)/'\1', '\2',/p" < $(top_srcdir)/funcname.tab >> w3mhelp-funcname.pl
@echo ');' >> w3mhelp-funcname.pl @echo ');' >> w3mhelp-funcname.pl
@echo '%keyfunc = (' >> w3mhelp-funcname.pl @echo '%keyfunc = (' >> w3mhelp-funcname.pl
@case "$(KEYBIND_SRC)" in *lynx*) keymap=keymap.lynx;; *) keymap=keymap.default;; esac; \ @case "$(KEYBIND_SRC)" in *lynx*) keymap=keymap.lynx;; *) keymap=keymap.default;; esac; \
sed -ne "/^keymap/s/^keymap[ ][ ]*\([^ ]*\)[ ][ ]*\([a-zA-Z@][a-zA-Z0-9@_]*\)/'\1', '\2', /p" < ../doc/$$keymap >> w3mhelp-funcname.pl sed -ne "/^keymap/s/^keymap[ ][ ]*\([^ ]*\)[ ][ ]*\([a-zA-Z@][a-zA-Z0-9@_]*\)/'\1', '\2', /p" < $(top_srcdir)/doc/$$keymap >> w3mhelp-funcname.pl
@echo ');' >> w3mhelp-funcname.pl @echo ');' >> w3mhelp-funcname.pl
@cat w3mhelp-funcname.pl.in >> w3mhelp-funcname.pl @cat $(srcdir)/w3mhelp-funcname.pl.in >> w3mhelp-funcname.pl
@echo "done" @echo "done"
w3mhelp-funcdesc-stamp: ../doc/README.func ../doc-jp/README.func w3mhelp-funcdesc.en.pl.in w3mhelp-funcdesc.ja.pl.in w3mhelp-funcdesc-stamp: $(top_srcdir)/doc/README.func $(top_srcdir)/doc-jp/README.func w3mhelp-funcdesc.en.pl.in w3mhelp-funcdesc.ja.pl.in
@echo "generating w3mhelp-funcdesc*.pl..." @echo "generating w3mhelp-funcdesc*.pl..."
@for dirlang in $(DOCDIRS); do \ @for dirlang in $(DOCDIRS); do \
dir=`expr "$$dirlang" : "\(.*\):.*"`; \ dir=`expr "$$dirlang" : "\(.*\):.*"`; \
lang=`expr "$$dirlang" : ".*:\(.*\)_.*"`; \ lang=`expr "$$dirlang" : ".*:\(.*\)_.*"`; \
echo '%funcdesc = (' > w3mhelp-funcdesc.$$lang.pl; \ echo '%funcdesc = (' > w3mhelp-funcdesc.$$lang.pl; \
sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ ][ ]*\(.*\)/'\1', '\2',/p" < ../$$dir/README.func >> w3mhelp-funcdesc.$$lang.pl; \ sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ ][ ]*\(.*\)/'\1', '\2',/p" < $(top_srcdir)/$$dir/README.func >> w3mhelp-funcdesc.$$lang.pl; \
echo ');' >> w3mhelp-funcdesc.$$lang.pl; \ echo ');' >> w3mhelp-funcdesc.$$lang.pl; \
cat w3mhelp-funcdesc.$$lang.pl.in >> w3mhelp-funcdesc.$$lang.pl; \ cat $(srcdir)/w3mhelp-funcdesc.$$lang.pl.in >> w3mhelp-funcdesc.$$lang.pl; \
done done
@echo done @echo done
@touch w3mhelp-funcdesc-stamp @touch w3mhelp-funcdesc-stamp