-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.2 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
37
38
39
40
41
42
43
44
45
46
47
48
# --*- Makefile -*-------------------------------------------------------------
#$Author$
#$Date$
#$Revision$
#$URL$
#------------------------------------------------------------------------------
#*
# Include all local Make files (Makelocal*, see the patterns below),
# and all local Make configuration files. All targets from these files
# will become available for the 'make' command.
#
# USAGE:
# # builds prerequisites of every 'all' targets in every Makelocal* file:
# make
# make all
#
# # cleans all generated files using every 'Makelocal*' file's rules:
# make clean
# make distclean
#
# Dependencies: needs GNU Make or compatible Make system.
#**
MAKEFILE_DIRS = . makefiles/enabled
MAKEFILE_WCARDS = $(addsuffix /Makelocal*, ${MAKEFILE_DIRS})
MAKECONF_WCARDS = $(addsuffix /Makeconf*, ${MAKEFILE_DIRS})
MAKECONF_FILES = $(sort $(filter-out %.example, \
$(filter-out %~, $(wildcard $(MAKECONF_WCARDS)) \
)))
ifneq ("${MAKECONF_FILES}","")
include ${MAKECONF_FILES}
endif
.PHONY: all clean distclean cleanAll
all:
clean:
cleanAll distclean: clean
MAKELOCAL_FILES = $(sort $(filter-out %~, $(wildcard $(MAKEFILE_WCARDS))))
ifneq ("${MAKELOCAL_FILES}","")
include ${MAKELOCAL_FILES}
endif