0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

path_to_top -> top_builddir

This commit is contained in:
Jonas Fonseca 2005-10-20 04:00:35 +02:00 committed by Jonas Fonseca
parent db99a74777
commit c88afeb1c2
65 changed files with 130 additions and 131 deletions

View File

@ -1,5 +1,5 @@
path_to_top=. top_builddir=.
-include $(path_to_top)/Makefile.config -include $(top_builddir)/Makefile.config
SUBDIRS = doc po src SUBDIRS = doc po src
CLEAN = features.log CLEAN = features.log

View File

@ -6,15 +6,14 @@
SHELL = @SHELL@ SHELL = @SHELL@
CURPATH = $(shell pwd) CURPATH = $(shell pwd)
TOPPATH = $(shell cd $(path_to_top) && pwd) TOPPATH = $(shell cd $(top_builddir) && pwd)
RELPATH = $(shell echo '$(CURPATH)' | sed 's,$(TOPPATH),,;s,^/,,;s,\([a-z0-9]\)$$,\1/,') RELPATH = $(shell echo '$(CURPATH)' | sed 's,$(TOPPATH),,;s,^/,,;s,\([a-z0-9]\)$$,\1/,')
PATHSCRIPT = case '@top_srcdir@' in /*) ;; *) echo $(path_to_top)/;; esac PATHSCRIPT = case '@top_srcdir@' in /*) ;; *) echo $(top_builddir)/;; esac
PATHPREFIX = $(shell $(PATHSCRIPT)) PATHPREFIX = $(shell $(PATHSCRIPT))
top_srcdir = $(PATHPREFIX)@top_srcdir@ top_srcdir = $(PATHPREFIX)@top_srcdir@
srcdir = $(top_srcdir)/$(RELPATH) srcdir = $(top_srcdir)/$(RELPATH)
top_builddir = $(path_to_top)
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@

View File

@ -1249,10 +1249,10 @@ srcdir2="$(cd "$srcdir" && pwd)"
if test "$srcdir2" != "$builddir"; then if test "$srcdir2" != "$builddir"; then
for i in $(make -C "$srcdir" list | grep Makefile); do for i in $(make -C "$srcdir" list | grep Makefile); do
$MKINSTALLDIRS "$builddir/$(dirname $i)" $MKINSTALLDIRS "$builddir/$(dirname $i)"
grep path_to_top= "$srcdir/$i" > "$builddir/$i" grep top_builddir= "$srcdir/$i" > "$builddir/$i"
case "$srcdir" in case "$srcdir" in
/*) echo "include $srcdir/$i" >> "$builddir/$i" ;; /*) echo "include $srcdir/$i" >> "$builddir/$i" ;;
*) echo "include \$(path_to_top)/$srcdir/$i" >> "$builddir/$i" ;; *) echo "include \$(top_builddir)/$srcdir/$i" >> "$builddir/$i" ;;
esac esac
echo "creating $builddir/$i" echo "creating $builddir/$i"
done done

View File

@ -1,5 +1,5 @@
path_to_top=.. top_builddir=..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = man SUBDIRS = man

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = man1 man5 SUBDIRS = man1 man5

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
elinks.1: $(srcdir)/elinks.1.in $(top_srcdir)/configure.in elinks.1: $(srcdir)/elinks.1.in $(top_srcdir)/configure.in
cd $(top_srcdir) && \ cd $(top_srcdir) && \

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
MAN5 = $(srcdir)/elinks.conf.5 $(srcdir)/elinkskeys.5 MAN5 = $(srcdir)/elinks.conf.5 $(srcdir)/elinkskeys.5

View File

@ -1,5 +1,5 @@
path_to_top=.. top_builddir=..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
# Where to install the catalog files. # Where to install the catalog files.
localedir = $(datadir)/locale localedir = $(datadir)/locale

View File

@ -1,5 +1,5 @@
path_to_top=.. top_builddir=..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_BOOKMARKS) += bookmarks SUBDIRS-$(CONFIG_BOOKMARKS) += bookmarks
SUBDIRS-$(CONFIG_COOKIES) += cookies SUBDIRS-$(CONFIG_COOKIES) += cookies

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_LEDS) += leds.o OBJS-$(CONFIG_LEDS) += leds.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = backend SUBDIRS = backend
OBJS = bookmarks.o dialogs.o OBJS = bookmarks.o dialogs.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_XBEL_BOOKMARKS) += xbel.o OBJS-$(CONFIG_XBEL_BOOKMARKS) += xbel.o
OBJS = common.o default.o OBJS = common.o default.o

4
src/cache/Makefile vendored
View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = cache.o dialogs.o OBJS = cache.o dialogs.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = cmdline.o conf.o dialogs.o home.o kbdbind.o options.o opttypes.o timer.o urlhist.o OBJS = cmdline.o conf.o dialogs.o home.o kbdbind.o options.o opttypes.o timer.o urlhist.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = cookies.o dialogs.o parser.o OBJS = cookies.o dialogs.o parser.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_EXMODE) += exmode.o OBJS-$(CONFIG_EXMODE) += exmode.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_CSS) += css SUBDIRS-$(CONFIG_CSS) += css
SUBDIRS-$(CONFIG_DOM) += dom sgml SUBDIRS-$(CONFIG_DOM) += dom sgml

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = apply.o css.o parser.o property.o scanner.o stylesheet.o value.o OBJS = apply.o css.o parser.o property.o scanner.o stylesheet.o value.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = navigator.o node.o renderer.o OBJS = navigator.o node.o renderer.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = parser SUBDIRS = parser
OBJS = frames.o parser.o renderer.o tables.o OBJS = frames.o parser.o renderer.o tables.o

View File

@ -1,5 +1,5 @@
path_to_top=../../../.. top_builddir=../../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = forms.o general.o link.o parse.o stack.o table.o OBJS = forms.o general.o link.o parse.o stack.o table.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = renderer.o OBJS = renderer.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = html SUBDIRS = html
OBJS = sgml.o parser.o scanner.o OBJS = sgml.o parser.o scanner.o

View File

@ -1,5 +1,5 @@
path_to_top=../../../.. top_builddir=../../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = html.o OBJS = html.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(SPIDERMONKEY_CFLAGS) INCLUDES += $(SPIDERMONKEY_CFLAGS)
SUBDIRS = spidermonkey SUBDIRS = spidermonkey

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(SPIDERMONKEY_CFLAGS) INCLUDES += $(SPIDERMONKEY_CFLAGS)
OBJS = document.o form.o location.o navigator.o unibar.o window.o OBJS = document.o form.o location.o navigator.o unibar.o window.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_BZIP2) += bzip2.o OBJS-$(CONFIG_BZIP2) += bzip2.o
OBJS-$(CONFIG_GZIP) += gzip.o OBJS-$(CONFIG_GZIP) += gzip.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = formhist.o dialogs.o OBJS = formhist.o dialogs.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = globhist.o dialogs.o OBJS = globhist.o dialogs.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_NLS) += gettext SUBDIRS-$(CONFIG_NLS) += gettext

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
localedir = $(datadir)/locale localedir = $(datadir)/locale
builddir = $(top_builddir)/src/intl/gettext builddir = $(top_builddir)/src/intl/gettext

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_INTERLINK) += interlink.o OBJS-$(CONFIG_INTERLINK) += interlink.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = backend SUBDIRS = backend
OBJS = dialogs.o mime.o OBJS = dialogs.o mime.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_MAILCAP) += mailcap.o OBJS-$(CONFIG_MAILCAP) += mailcap.o
OBJS-$(CONFIG_MIMETYPES) += mimetypes.o OBJS-$(CONFIG_MIMETYPES) += mimetypes.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_SSL) += ssl SUBDIRS-$(CONFIG_SSL) += ssl

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS) INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(X_CFLAGS) INCLUDES += $(X_CFLAGS)
SUBDIRS-$(CONFIG_BEOS) += beos SUBDIRS-$(CONFIG_BEOS) += beos

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = beos.o overrides.o OBJS = beos.o overrides.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = os2.o OBJS = os2.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = riscos.o OBJS = riscos.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = unix.o bsd.o OBJS = unix.o bsd.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = win32.o overrides.o OBJS = win32.o overrides.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_BITTORRENT) += bittorrent SUBDIRS-$(CONFIG_BITTORRENT) += bittorrent
SUBDIRS-$(CONFIG_FINGER) += finger SUBDIRS-$(CONFIG_FINGER) += finger

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
# Needed for the digest MD5 sum calculation. # Needed for the digest MD5 sum calculation.
INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS) INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS) INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_CGI) += cgi.o OBJS-$(CONFIG_CGI) += cgi.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = finger.o OBJS = finger.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = ftp.o parse.o OBJS = ftp.o parse.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = gopher.o OBJS = gopher.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = blacklist.o codes.o http.o OBJS = blacklist.o codes.o http.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = nntp.o connection.o response.o OBJS = nntp.o connection.o response.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = rewrite.o OBJS = rewrite.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = smb.o OBJS = smb.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_GUILE) += guile SUBDIRS-$(CONFIG_GUILE) += guile
SUBDIRS-$(CONFIG_LUA) += lua SUBDIRS-$(CONFIG_LUA) += lua

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(GUILE_CFLAGS) INCLUDES += $(GUILE_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(LUA_CFLAGS) INCLUDES += $(LUA_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(PERL_CFLAGS) INCLUDES += $(PERL_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(PYTHON_CFLAGS) INCLUDES += $(PYTHON_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
INCLUDES += $(RUBY_CFLAGS) INCLUDES += $(RUBY_CFLAGS)

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = download.o history.o location.o session.o task.o OBJS = download.o history.o location.o session.o task.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_MOUSE) += mouse.o OBJS-$(CONFIG_MOUSE) += mouse.o

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
# Reverse a CONFIG_* string # Reverse a CONFIG_* string
# Usage $(call not,$(CONFIG_FOO)) # Usage $(call not,$(CONFIG_FOO))

View File

@ -1,5 +1,5 @@
path_to_top=../.. top_builddir=../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
SUBDIRS = dump text SUBDIRS = dump text
OBJS = action.o timer.o OBJS = action.o timer.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS = dump.o OBJS = dump.o

View File

@ -1,5 +1,5 @@
path_to_top=../../.. top_builddir=../../..
include $(path_to_top)/Makefile.config include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_MARKS) += marks.o OBJS-$(CONFIG_MARKS) += marks.o