mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-09 16:50:19 +01:00
doc: add a check to compare local files with those in the makefile
Avoid forgetting about adding svgs/dotfiles to the Makefile.am Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
890b3c34a4
commit
7af58883f5
1 changed files with 10 additions and 0 deletions
|
|
@ -86,6 +86,16 @@ EXTRA_DIST += $(diagram_files) \
|
|||
$(header_files) \
|
||||
$(style_files)
|
||||
|
||||
local_svg = $(shell find $(srcdir)/svg -type f -printf "$(srcdir)/svg/%P\n" 2>/dev/null)
|
||||
local_dotfiles = $(shell find $(srcdir)/dot -type f -printf "$(srcdir)/dot/%P\n" 2>/dev/null)
|
||||
|
||||
check:
|
||||
@files=`echo $(local_svg) $(local_dotfiles) $(diagram_files) | tr ' ' '\n' | sort | uniq -u` && \
|
||||
test -z "$$files" || (\
|
||||
echo "SVG/dotfiles files present but missing from the Makefile.am:" && \
|
||||
echo "$$files" && \
|
||||
test)
|
||||
|
||||
# make sure doc was built before running dist
|
||||
dist-hook:
|
||||
@test -f $(distdir)/html/index.html || (\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue