Makefile 1.39 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 forpy_do 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
forpy_do:
	if test -d Forpy ; then \
	( cd Forpy ; 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
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
19
20
21
22
23
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
24
25
26
27
28
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
29
30
31
32
33
34
clean: forpy_undo json_undo base64_undo json_test_undo 

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

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
41
42
43
44
45
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
46
47
48
49
50
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
51
distclean: clean
Marco Govoni's avatar
Marco Govoni committed
52
53
54
55
56
57
58

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