From 2b4a5d1df8e567a8b73f90563af05871ad6a1bb9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 11 Mar 2019 19:30:54 -0400 Subject: Makefile.am, lib/local.mk: Extract TODO comments from libopkbuild sources --- diff --git a/Makefile.am b/Makefile.am index a137b49..4f98bf0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -57,6 +57,7 @@ libdatadir = $(datadir)/sh helperdir = $(pkgdatadir)/helpers CLEANFILES = +extra_sources = EXTRA_DIST = \ NEWS.opkhelper \ TODO \ @@ -89,7 +90,7 @@ todo: printf '\n'; \ printf 'Code comments:\n'; \ printf '==============\n\n'; \ - for f in $$(printf '%s\n' $(SOURCES) | sort -u); do \ + for f in $$(printf '%s\n' $(SOURCES) $(extra_sources) | sort -u); do \ printed=false; \ sed '=' "$(top_srcdir)/$${f}" | sed 'N; s/\n/ ./' | sed -n \ '$(todo_code_script)' | while read -r lineno line; do \ diff --git a/lib/local.mk b/lib/local.mk index e0ab8cc..845905a 100644 --- a/lib/local.mk +++ b/lib/local.mk @@ -33,6 +33,9 @@ libopkbuild_shsoversion = 2 CLEANFILES += \ $(libdata_DATA) \ $(libopkbuild_ldadd) +extra_sources += \ + $(libopkbuild_sources) \ + $(EXTRA_libopkbuild_sources) EXTRA_DIST += \ $(libopkbuild_sources) \ $(EXTRA_libopkbuild_sources) -- cgit v0.9.1