-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 777 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PERL_SOURCES := $(wildcard */wrapper/*.pl) nomdoc nomdep
CHECKS := $(wildcard check/*.check)
NOTIFICATIONS := $(wildcard notify/*.notify)
BASH_SOURCES := nomd check.default notify.default $(wildcard tool/*.tool) $(CHECKS) $(NOTIFICATIONS)
run:
./nomd
clean:
rm -f .perl-deps # not in use any more, remove later
rm -f *~ */*~ */*/*~
test-perl: $(PERL_SOURCES)
@for FILE in $(PERL_SOURCES); do perl -c "$$FILE" || exit 1; done
test-bash: $(BASH_SOURCES)
@for FILE in $(BASH_SOURCES); do bash -n "$$FILE" && echo "$$FILE syntax OK" || exit 1; done
@if shellcheck -V >/dev/null 2>&1; then \
shellcheck -s bash $(BASH_SOURCES) && echo "$$FILE no shellcheck warnings" || exit 1; \
else \
echo shellcheck binary is missing; \
fi
test: test-perl test-bash