Makefile 1.09 KB
Newer Older
Marco Govoni's avatar
Marco Govoni committed
1
2
3
4
# Makefile for Libraries

default: all

Marco Govoni's avatar
Marco Govoni committed
5
all: title json_do base64_do
Marco Govoni's avatar
Marco Govoni committed
6

Marco Govoni's avatar
Marco Govoni committed
7
8
test: json_test_do

Marco Govoni's avatar
Marco Govoni committed
9
10
11
12
13
json_do:
	if test -d Json ; then \
	( cd Json ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
	else $(MAKE) $(MFLAGS) all ; fi ) ; fi

Marco Govoni's avatar
Marco Govoni committed
14
15
16
17
18
base64_do:
	if test -d Base64 ; then \
	( cd Base64 ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
	else $(MAKE) $(MFLAGS) all ; fi ) ; fi

Marco Govoni's avatar
Marco Govoni committed
19
20
21
22
23
json_test_do:
	if test -d Json-test ; then \
	( cd Json-test ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
	else $(MAKE) $(MFLAGS) all ; fi ) ; fi

Marco Govoni's avatar
Marco Govoni committed
24
clean: json_undo base64_undo 
Marco Govoni's avatar
Marco Govoni committed
25
26
27
28
29
30

json_undo:
	if test -d Json ; then \
	( cd Json ; if test "$(MAKE)" = "" ; then make clean ; \
	else $(MAKE) clean ; fi ) ; fi

Marco Govoni's avatar
Marco Govoni committed
31
32
33
34
35
base64_undo:
	if test -d Base64 ; then \
	( cd Base64 ; if test "$(MAKE)" = "" ; then make clean ; \
	else $(MAKE) clean ; fi ) ; fi

Marco Govoni's avatar
Marco Govoni committed
36
37
38
39
40
json_test_undo:
	if test -d Json-test ; then \
	( cd Json-test ; if test "$(MAKE)" = "" ; then make clean ; \
	else $(MAKE) clean ; fi ) ; fi

Marco Govoni's avatar
Marco Govoni committed
41
distclean: clean
Marco Govoni's avatar
Marco Govoni committed
42
43
44
45
46
47
48

title :
	@echo "              "
	@echo "##############"
	@echo "## Libraries #"
	@echo "##############"
	@echo "              "