mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
More build speed ups by using native make for more stuff
Nearly halves traversal of an empty tree.
This commit is contained in:
parent
02cbb8f8b5
commit
803f3c5d39
@ -1,25 +1,20 @@
|
||||
# This is the automake's playground of our cool build system.
|
||||
# $Id$
|
||||
#
|
||||
# TODO: Make part of it autogenerated based on AC_SUBST() or something.
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
CURPATH = $(shell 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 $(top_builddir)/;; esac
|
||||
PATHPREFIX = $(shell $(PATHSCRIPT))
|
||||
|
||||
TOPPATH = $(shell cd $(top_builddir) && pwd)
|
||||
RELPATH = $(subst $(TOPPATH)/,,$(CURDIR)/)
|
||||
PATHPREFIX = $(if $(patsubst /%,,@top_srcdir@),$(top_builddir)/)
|
||||
top_srcdir = $(PATHPREFIX)@top_srcdir@
|
||||
|
||||
SRCPATH = $(shell cd $(top_srcdir)/$(RELPATH) && pwd)
|
||||
ifeq ($(SRCPATH),$(CURPATH))
|
||||
srcdir =
|
||||
ifeq (@top_srcdir@,.)
|
||||
srcdir =
|
||||
else
|
||||
srcdir = $(top_srcdir)/$(RELPATH)
|
||||
endif
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user