forked from tonal/espa-product-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (46 loc) · 1.83 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
53
54
55
56
57
58
59
60
#-----------------------------------------------------------------------------
# Makefile
#
# Project Name: product formatter
#-----------------------------------------------------------------------------
.PHONY: check-environment all install clean all-script install-script clean-script all-raw-binary install-raw-binary clean-raw-binary
include make.config
DIR_RAW_BINARY = raw_binary
DIR_PYTHON = py_modules
DIR_SCHEMA = schema
all: all-script all-raw-binary
install: check-environment install-script install-raw-binary install-python install-schema
clean: clean-script clean-raw-binary
#-----------------------------------------------------------------------------
all-script:
echo "make all in scripts"; \
(cd scripts; $(MAKE) all);
install-script:
echo "make install in scripts"; \
(cd scripts; $(MAKE) install);
clean-script:
echo "make clean in scripts"; \
(cd scripts; $(MAKE) clean);
#-----------------------------------------------------------------------------
all-raw-binary:
echo "make all in $(DIR_RAW_BINARY)"; \
(cd $(DIR_RAW_BINARY); $(MAKE) all);
install-raw-binary:
echo "make install in $(DIR_RAW_BINARY)"; \
(cd $(DIR_RAW_BINARY); $(MAKE) install);
clean-raw-binary:
echo "make clean in $(DIR_RAW_BINARY)"; \
(cd $(DIR_RAW_BINARY); $(MAKE) clean);
#-----------------------------------------------------------------------------
install-python:
echo "make install in $(DIR_PYTHON)"; \
(cd $(DIR_PYTHON); $(MAKE) install);
#-----------------------------------------------------------------------------
install-schema:
echo "make install in $(DIR_SCHEMA)"; \
(cd $(DIR_SCHEMA); $(MAKE) install);
#-----------------------------------------------------------------------------
check-environment:
ifndef PREFIX
$(error Environment variable PREFIX is not defined)
endif