2005-10-19 22:00:35 -04:00
|
|
|
top_builddir=..
|
|
|
|
include $(top_builddir)/Makefile.config
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2005-09-27 16:49:47 -04:00
|
|
|
SUBDIRS-$(CONFIG_BOOKMARKS) += bookmarks
|
|
|
|
SUBDIRS-$(CONFIG_COOKIES) += cookies
|
2006-01-14 04:41:58 -05:00
|
|
|
SUBDIRS-$(CONFIG_DOM) += dom
|
|
|
|
SUBDIRS-$(CONFIG_ECMASCRIPT) += ecmascript
|
2005-09-27 16:49:47 -04:00
|
|
|
SUBDIRS-$(CONFIG_FORMHIST) += formhist
|
|
|
|
SUBDIRS-$(CONFIG_GLOBHIST) += globhist
|
|
|
|
SUBDIRS-$(CONFIG_SCRIPTING) += scripting
|
2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
SUBDIRS = \
|
|
|
|
bfu \
|
|
|
|
cache \
|
|
|
|
config \
|
|
|
|
dialogs \
|
|
|
|
document \
|
|
|
|
encoding \
|
|
|
|
intl \
|
|
|
|
main \
|
|
|
|
mime \
|
|
|
|
network \
|
|
|
|
osdep \
|
|
|
|
protocol \
|
|
|
|
session \
|
|
|
|
terminal \
|
|
|
|
util \
|
|
|
|
viewer
|
|
|
|
|
2005-09-17 08:45:59 -04:00
|
|
|
# Get the GIT HEAD ID if possible
|
2008-01-22 07:21:29 -05:00
|
|
|
ifdef GIT
|
2008-02-29 19:30:26 -05:00
|
|
|
GITDESC = $(shell $(GIT) --git-dir=$(top_srcdir)/.git rev-parse HEAD 2>/dev/null)
|
2008-03-01 07:07:47 -05:00
|
|
|
WTDIRTY = $(shell cd "$(top_srcdir)" && $(GIT) diff-index HEAD 2>/dev/null)
|
2008-01-22 07:21:29 -05:00
|
|
|
BUILD_ID = $(subst elinks-,,$(GITDESC))$(if $(WTDIRTY),-dirty)
|
2005-09-17 08:45:59 -04:00
|
|
|
endif
|
2005-09-17 10:21:35 -04:00
|
|
|
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
|
2005-09-17 08:45:59 -04:00
|
|
|
|
2006-07-09 11:25:29 -04:00
|
|
|
vernum.o: $(LIB_O_NAME)
|
2005-09-16 07:13:22 -04:00
|
|
|
|
2010-03-22 04:35:15 -04:00
|
|
|
elinks$(EXEEXT): $(LIB_O_NAME) vernum.o
|
2005-09-16 07:13:22 -04:00
|
|
|
$(call cmd,link)
|
|
|
|
|
2007-05-20 11:44:09 -04:00
|
|
|
# Place the TAGS file in the source directory so that, if the same
|
|
|
|
# source is built for different configurations in different build
|
|
|
|
# directories, one doesn't have to remember which of those build
|
|
|
|
# directories has the most recent TAGS.
|
2007-01-27 14:03:09 -05:00
|
|
|
TAGS:
|
2007-08-10 04:26:14 -04:00
|
|
|
cd $(firstword $(srcdir) .) \
|
2007-05-20 11:44:09 -04:00
|
|
|
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
|
2007-07-29 05:55:38 -04:00
|
|
|
| etags --regex='{c}/\(?:static \)?INIT_LIST_OF([^,]*,[ \t]*\([[:alnum:]_]+\))/\1/' \
|
2007-01-27 14:03:09 -05:00
|
|
|
--regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
|
2007-03-23 03:44:16 -04:00
|
|
|
--regex='{c}/^ACTION_(\([[:alnum:]_]+\),[^,]*,[ \t]*\([[:alnum:]_]+\),/ACT_\1_\2/' \
|
|
|
|
--language=c -
|
2007-08-10 04:26:14 -04:00
|
|
|
|
|
|
|
tags:
|
|
|
|
cd $(firstword $(srcdir) .) \
|
|
|
|
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
|
|
|
|
| ctags -L -
|
|
|
|
|
|
|
|
.PHONY: TAGS tags
|
2007-01-27 14:03:09 -05:00
|
|
|
|
2010-03-22 04:35:15 -04:00
|
|
|
PROGS = elinks$(EXEEXT)
|
2007-08-10 04:26:14 -04:00
|
|
|
CLEAN = vernum.o TAGS tags
|
2005-09-17 14:37:23 -04:00
|
|
|
|
2005-10-19 19:11:47 -04:00
|
|
|
include $(top_srcdir)/Makefile.lib
|