1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00
elinks/src/Makefile

66 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

2005-10-20 02:00:35 +00:00
top_builddir=..
include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_BOOKMARKS) += bookmarks
SUBDIRS-$(CONFIG_COOKIES) += cookies
2006-01-14 09:41:58 +00:00
SUBDIRS-$(CONFIG_DOM) += dom
SUBDIRS-$(CONFIG_ECMASCRIPT) += ecmascript
SUBDIRS-$(CONFIG_FORMHIST) += formhist
SUBDIRS-$(CONFIG_GLOBHIST) += globhist
SUBDIRS-$(CONFIG_SCRIPTING) += scripting
SUBDIRS = \
bfu \
cache \
config \
dialogs \
document \
encoding \
intl \
main \
mime \
network \
osdep \
protocol \
session \
terminal \
util \
viewer
# Get the GIT HEAD ID if possible
ifdef GIT
GITDESC = $(shell $(GIT) --git-dir=$(top_srcdir)/.git rev-parse HEAD 2>/dev/null)
WTDIRTY = $(shell cd "$(top_srcdir)" && $(GIT) diff-index HEAD 2>/dev/null)
BUILD_ID = $(subst elinks-,,$(GITDESC))$(if $(WTDIRTY),-dirty)
endif
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
vernum.o: $(LIB_O_NAME)
2010-03-22 08:35:15 +00:00
elinks$(EXEEXT): $(LIB_O_NAME) vernum.o
$(call cmd,link)
# 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 19:03:09 +00:00
TAGS:
cd $(firstword $(srcdir) .) \
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
2007-07-29 09:55:38 +00:00
| etags --regex='{c}/\(?:static \)?INIT_LIST_OF([^,]*,[ \t]*\([[:alnum:]_]+\))/\1/' \
2007-01-27 19:03:09 +00:00
--regex='{c}/struct_hierbox_browser(\n[ \t]*\([[:alnum:]_]+\),/\1/m' \
--regex='{c}/^ACTION_(\([[:alnum:]_]+\),[^,]*,[ \t]*\([[:alnum:]_]+\),/ACT_\1_\2/' \
--language=c -
tags:
cd $(firstword $(srcdir) .) \
&& find . \( -name "*.[ch]" -o -name "*.inc" \) -print \
| ctags -L -
.PHONY: TAGS tags
2007-01-27 19:03:09 +00:00
2010-03-22 08:35:15 +00:00
PROGS = elinks$(EXEEXT)
CLEAN = vernum.o TAGS tags
include $(top_srcdir)/Makefile.lib