forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
92 lines (74 loc) · 2.21 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
include $(top_srcdir)/source.mak
# Test cases are added to EXTRA_DIST in makefiles/test-cases.mak
EXTRA_DIST = $(NULL)
bin_PROGRAMS = ctags
if USE_READCMD
bin_PROGRAMS+= readtags
readtags_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/main -I$(srcdir)/read
dist_readtags_SOURCES = $(READTAGS_SRCS) $(READTAGS_HEADS)
readtags_CPPFLAGS += -DQUALIFIER -I$(srcdir)/dsl
dist_readtags_SOURCES += $(QUALIFIER_SRCS) $(QUALIFIER_HEADS)
endif
if !HAVE_FNMATCH
MAIN_SRCS += $(FNMATCH_SRCS)
MAIN_HEADS += $(FNMATCH_HEADS)
endif
if !HAVE_REGCOMP
MAIN_SRCS += $(REGEX_SRCS)
MAIN_HEADS += $(REGEX_HEADS)
endif
if HAVE_LIBXML
PARSER_SRCS += $(XML_SRCS)
PARSER_HEADS += $(XML_HEADS)
endif
ctags_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/main
if ENABLE_DEBUGGING
ctags_CPPFLAGS+= $(DEBUG_CPPFLAGS)
endif
ctags_CPPFLAGS+= $(FNMATCH_CPPFLAGS)
ctags_CPPFLAGS+= $(REGCOMP_CPPFLAGS)
ctags_CPPFLAGS+= -DHAVE_REPOINFO_H
ctags_CFLAGS =
ctags_CFLAGS += $(EXTRA_CFLAGS)
ctags_CFLAGS += $(WARNING_CFLAGS)
ctags_CFLAGS += $(COVERAGE_CFLAGS)
ctags_CFLAGS += $(CGCC_CFLAGS)
ctags_CFLAGS += $(LIBXML_CFLAGS)
ctags_LDADD =
ctags_LDADD += $(LIBXML_LIBS)
nodist_ctags_SOURCES = $(REPOINFO_HEADS)
BUILT_SOURCES = $(REPOINFO_HEADS)
CLEANFILES = $(REPOINFO_HEADS)
$(REPOINFO_OBJS): $(REPOINFO_SRCS) $(REPOINFO_HEADS)
if BUILD_IN_GIT_REPO
GEN_REPOINFO = $(srcdir)/misc/gen-repoinfo
$(REPOINFO_HEADS): $(GEN_REPOINFO) $(srcdir)/.git/*
$(GEN_REPOINFO) > $@
else
$(REPOINFO_HEADS):
echo > $@
endif
if RUN_OPTLIB2C
optlib2c_verbose = $(optlib2c_verbose_@AM_V@)
optlib2c_verbose_ = $(optlib2c_verbose_@AM_DEFAULT_V@)
optlib2c_verbose_0 = @echo OPTLIB2C " $@";
OPTLIB2C = $(srcdir)/misc/optlib2c
%.c: %.ctags $(OPTLIB2C) Makefile
$(optlib2c_verbose)$(OPTLIB2C) --transform-xcmd="$(program_transform_name)" $< > $@
endif
dist_ctags_SOURCES = $(ALL_HEADS) $(ALL_SRCS)
man_MANS = ctags.1
if ENABLE_XCMD
driversdir = $(pkglibexecdir)/drivers
dist_drivers_SCRIPTS = libexec/drivers/coffeetags
endif
if INSTALL_ETAGS
install-exec-hook:
cd $(DESTDIR)$(bindir) && \
$(LN_S) ctags$(EXEEXT) etags$(EXEEXT)
uninstall-hook:
rm $(DESTDIR)$(bindir)/etags$(EXEEXT)
endif
include $(top_srcdir)/makefiles/testing.mak
include $(top_srcdir)/makefiles/test-cases.mak
include $(top_srcdir)/makefiles/help.mak