forked from IBM/data-prep-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (43 loc) · 1.81 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
49
50
51
52
#################################################################################################################
#
# This is the top level makefile, which is intended to be able to process a common set of rules on all
# sub-projects underneath this directory. Currently, the common/standardized set of rules are as follows
# and supported by .make.defaults
#
# setup:
# clean:
# build:
# test:
#
# When finally getting to a makefile that requires a rule implementation, for example to test the build,
# that makefile should override/implement the rule to meet its needs. Such a rule may continue to recurse
# using "$(MAKE) <rule>-recurse", for example "$(MAKE) test-recurse".
#
# Each rule is called recursively on sub-directories and if a similar inclusion is done in the sub-Makefiles,
# the rules will be applied/executed recursively in their sub-directories.
#
#################################################################################################################
REPOROOT=.
# Get some common rules for the whole repo
include .make.defaults
########## ########## ########## ########## ########## ########## ########## ##########
# Global rules that are generally to be implemented in the sub-directories and can
# be overridden there (the double colon on the rule makes the overridable).
clean:
@# Help: Recursively $@ in all subdirs
$(MAKE) RULE=$@ .recurse
build:
@# Help: Recursively $@ in all subdirs
$(MAKE) RULE=$@ .recurse
test:
@# Help: Recursively $@ in all subdirs
@$(MAKE) RULE=$@ .recurse
publish:
@# Help: Recursively $@ in all subdirs
@$(MAKE) RULE=$@ .recurse
set-versions:
@# Help: Recursively $@ in all subdirs. Should only be used when .make.versions is changed.
@$(MAKE) RULE=$@ .recurse
show-version:
@# Help: Show the version defined in .make.versions
@echo $(DPK_VERSION)