1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00: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=.
-include $(path_to_top)/Makefile.config
top_builddir=.
-include $(top_builddir)/Makefile.config
SUBDIRS = doc po src
CLEAN = features.log

View File

@ -6,15 +6,14 @@
SHELL = @SHELL@
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/,')
PATHSCRIPT = case '@top_srcdir@' in /*) ;; *) echo $(path_to_top)/;; esac
PATHSCRIPT = case '@top_srcdir@' in /*) ;; *) echo $(top_builddir)/;; esac
PATHPREFIX = $(shell $(PATHSCRIPT))
top_srcdir = $(PATHPREFIX)@top_srcdir@
srcdir = $(top_srcdir)/$(RELPATH)
top_builddir = $(path_to_top)
prefix = @prefix@
exec_prefix = @exec_prefix@

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

4
src/cache/Makefile vendored
View File

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

View File

@ -1,5 +1,5 @@
path_to_top=../..
include $(path_to_top)/Makefile.config
top_builddir=../..
include $(top_builddir)/Makefile.config
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=../..
include $(path_to_top)/Makefile.config
top_builddir=../..
include $(top_builddir)/Makefile.config
OBJS = cookies.o dialogs.o parser.o

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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