forked from sauliusg/grammatiker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (24 loc) · 1.02 KB
/
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
# --*- Makefile -*-------------------------------------------------------------
#$Author$
#$Date$
#$Revision$
#$URL$
#------------------------------------------------------------------------------
MAKECONF_FILES = ${filter-out %~, ${wildcard Makeconf*}}
ifneq ("${MAKECONF_FILES}","")
include ${MAKECONF_FILES}
endif
# A Makeconfig file might contain a line like the following one:
FIRST = BNF/
# The recursive Makefile will first descend to directories mentioned
# in ${FIRST}, and then into all the rest alphabetically:
DIRS = ${FIRST} ${filter-out ${FIRST}, ${dir ${wildcard */Makefile}}}
.PHONY: all clean cleanAll distclean test tests
#------------------------------------------------------------------------------
all clean cleanAll distclean test tests:
@for d in ${DIRS}; do test -d $$d && ${MAKE} -C $$d $@; done
#------------------------------------------------------------------------------
MAKELOCAL_FILES = ${filter-out %~, ${wildcard Makelocal*}}
ifneq ("${MAKELOCAL_FILES}","")
include ${MAKELOCAL_FILES}
endif