-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 856 Bytes
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Copyright (c) 2001-2016 Grant Erickson
#
# Description:
# Makefile for 'cstyle' coding style and conventions enforcement
# tool.
#
TARGETS = cstyle
SUBDIRS = tests
#
# Implicit rules
#
.SUFFIXES: .pl
.pl:
rm -f $@ $@-t
cp $< $@-t
chmod +x $@-t
mv $@-t $@
all: all-recursive all-local
all-local: $(TARGETS)
check: check-recursive
install: install-recursive
all-recursive clean-recursive check-recursive install-recursive:
@for subdir in $(SUBDIRS); do \
target=`echo $@ | sed s/-recursive//`; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
clean: clean-recursive
rm -f $(TARGETS)
rm -f *.CKP *.ln *.BAK *.bak core errs ,* *.a *.o .emacs_* \
tags TAGS make.log .*make.state MakeOut *~ "#"*