DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5350524bb654)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
$(shell \
if ! test -f include-dynamic.inc; then \
  echo "TESTVAR = oldval" > include-dynamic.inc; \
  sleep 2; \
  echo "TESTVAR = newval" > include-dynamic.inc.in; \
fi \
)

# before running the 'all' rule, we should be rebuilding include-dynamic.inc,
# because there is a rule to do so

all:
	test $(TESTVAR) = newval
	test "$(MAKE_RESTARTS)" = 1
	@echo TEST-PASS

include-dynamic.inc: include-dynamic.inc.in
	test "$(MAKE_RESTARTS)" = ""
	cp $< $@

include include-dynamic.inc