63 |
|
|
64 |
# Include the configure-generated file of parameters. |
# Include the configure-generated file of parameters. |
65 |
# This sets up variables for build tools and installation directories. |
# This sets up variables for build tools and installation directories. |
66 |
|
ifneq (,$(wildard $(..)config.make)) |
67 |
include $(..)config.make |
include $(..)config.make |
68 |
|
# Set a flag for the makefiles to indicated config.make was included. |
69 |
|
configured = yes |
70 |
|
endif |
71 |
|
|
72 |
|
# If we're not configured, don't do deps; then `make TAGS' and such can work. |
73 |
|
ifndef configured |
74 |
|
no_deps = t |
75 |
|
endif |
76 |
|
|
77 |
# Test build options set by configure. |
# Test build options set by configure. |
78 |
ifeq (no,$(build-profiled)) |
ifeq (no,$(build-profiled)) |
379 |
|
|
380 |
# TAGS files |
# TAGS files |
381 |
ifneq ($(dir),.) |
ifneq ($(dir),.) |
382 |
DEP_SRCS = sed -e 's/^.*://' -e 's/ \\$$//' | tr ' ' '\012'| \ |
ifeq ($(SRCS),) |
|
sed -n -e 's@^$(srcdir)@&@p' -e 's@^[^/]@&@p' | sort -ur |
|
|
ifeq ($(OBJS),) |
|
383 |
TAGS: $(OTHERTAGS) |
TAGS: $(OTHERTAGS) |
384 |
ifeq ($(OTHERTAGS),) |
ifeq ($(OTHERTAGS),) |
385 |
# no tags, but parent will include this file, so make empty one. |
# no tags, but parent will include this file, so make empty one. |
388 |
etags -o $@ $^ |
etags -o $@ $^ |
389 |
endif |
endif |
390 |
else |
else |
391 |
TAGS: $(OBJS:.o=.d) $(OTHERTAGS) |
TAGS: $(SRCS) $(OTHERTAGS) |
392 |
cat $(OBJS:.o=.d) | $(DEP_SRCS) | etags -o $@ - $(OTHERTAGS) |
etags -o $@ $^ |
393 |
endif |
endif |
394 |
endif |
endif |
395 |
|
|