-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (34 loc) · 720 Bytes
/
Makefile
File metadata and controls
38 lines (34 loc) · 720 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
27
28
29
30
31
32
33
34
35
36
37
38
# |
# o---------------------------------------------------------------------o
# |
# | MAD makefile
# |
# o---------------------------------------------------------------------o
# |
# | Methodical Accelerator Design
# |
# | Copyright (c) 2011+ CERN, mad@cern.ch
# |
# | For more information, see http://cern.ch/mad
# |
# o---------------------------------------------------------------------o
# |
# | $Id$
# |
#
# macros
#
eq = $(if $(patsubst $1,,$2),,t)
_ := $(if $(call eq,$(SHOW),yes),,@)
E := $(if $(call eq,$(SHOW),yes),@ \#,@ echo)
RM := rm -f
FIND := find
#
# rules
#
.PHONY: clean cleandir
clean:
$E "** Cleaning local files"
$_ $(RM) core
$_ $(FIND) . -name '*~' -exec $(RM) {} \;
# end of makefile