From 41f638c961d5c7832e2b18a9f2e45a09b54dc53e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Dec 2015 11:55:10 -0500 Subject: Makefile.am: List files only once in todo target --- (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 83026a8..f8cdfa8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -81,7 +81,7 @@ todo: printf '\n'; \ printf 'Code comments:\n'; \ printf '==============\n\n'; \ - for f in $(SOURCES); do \ + for f in $$(printf '%s\n' $(SOURCES) | sort -u); do \ printed=false; \ sed '=' "$(top_srcdir)/$${f}" | sed 'N; s/\n/ ./' | sed -n \ '$(todo_script)' | while read -r lineno line; do \ -- cgit v0.9.1