Makefile 797 Bytes
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
7
8
9
10
11

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
12
13
14
15
16
17
base64_do:
	if test -d Base64 ; then \
	( cd Base64 ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
	else $(MAKE) $(MFLAGS) all ; fi ) ; fi

clean: json_undo base64_undo 
Marco Govoni's avatar
Marco Govoni committed
18
19
20
21
22
23

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
24
25
26
27
28
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
29
distclean: clean
Marco Govoni's avatar
Marco Govoni committed
30
31
32
33
34
35
36

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