File: check-sources.mk

package info (click to toggle)
gem 1%3A0.93.3-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 28,524 kB
  • sloc: cpp: 134,188; sh: 11,215; makefile: 2,853; ansic: 84
file content (15 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# check for forgotten sources
# include this makefile snippet in your Makefile.am and it will print-out a list
# of all .cpp and .h files that have been forgotten to be added to DIST_SOURCES

.PHONY: check-sources

all-local:: check-sources

_check_sources_all=$(wildcard *.cpp *.h)
_check_sources_unused=$(filter-out $(DIST_SOURCES) $(CHECKUNUSED_IGNORE), $(_check_sources_all))

check-sources: 
	@echo "UNUSED SOURCES: $(_check_sources_unused)"