RFC2629TOOLS_BASE := $(firstword $(wildcard ${RFC2629TOOLS_BASE} rfc2629tools ../rfc2629tools)) ifeq (${RFC2629TOOLS_BASE},) $(error Could not guess RFC2629TOOLS_BASE setting, try setting it manually) endif include ${RFC2629TOOLS_BASE}/GNUmakefile define DIFF ifneq ($(wildcard rfc6810.txt),) HTML += $1-from-rfc6810.diff.html diff:: $1-from-rfc6810.diff.html $1-from-rfc6810.diff.html : rfc6810.txt $1.txt rfcdiff --stdout rfc6810.txt $1.txt >$1-from-rfc6810.diff.html.tmp mv $1-from-rfc6810.diff.html.tmp $1-from-rfc6810.diff.html endif endef $(foreach T,${TARGETS},$(eval $(call DIFF,${T})))