forked from drotiro/postpic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 829 Bytes
/
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
# Variables
SUBDIRS = server utils
# Targets
postpic: check
@$(foreach i,$(SUBDIRS), make -C $i || exit 1; )
jdbc: jcheck
@ant -f jdbc/build.xml
examples: jdbc
@ant -f examples/PostPicSQL/build.xml
clean:
@$(foreach i,$(SUBDIRS), make -C $i clean ;)
jdbc-clean:
@ant -f jdbc/build.xml clean
install: postpic
@$(foreach i,$(SUBDIRS), make -C $i install; )
all: postpic jdbc
clean-all: clean jdbc-clean
jcheck:
@echo " *** Checking for required programs"
@(echo -n " ant :" && which ant) || (echo " missing!" && exit 1)
check:
@echo " *** Checking for required programs"
@(echo -n " GraphicsMagick-config: " && which GraphicsMagick-config) || (echo " missing!" && exit 1)
@(echo -n " pg_config : " && which pg_config) || (echo " missing!" && exit 1)
.PHONY: jdbc jdbc-clean check