-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile.am
68 lines (55 loc) · 1.85 KB
/
Makefile.am
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
61
62
63
64
65
66
67
68
#
# Toplevel Makefile for JMagick.
#
# NOTE: Define DESTDIR if you are not installing JMagick
# to its final directories. This is for the purpose
# of packaging.
# Contributed by Adam Heath <[email protected]>
#
MAKE_PATH = .
include $(MAKE_PATH)/Make.def
DIRS = src
if USE_CYGPATH
JAR_FILE = "$(shell cygpath -C UTF8 -w "$(LIB_DIR)/jmagick-$(MAJOR).$(MINOR).$(MICRO).jar")"
CLEAN_LIST = $(LIB_DIR)/jmagick-$(MAJOR).$(MINOR).$(MICRO).jar
JAVADOC_DEST = "$(shell cygpath -C UTF8 -s -w "$(DEST)$(JAVADOC_DIR)")"
JAVADOC_SRC = "$(shell cygpath -C UTF8 -s -w "$(JAVA_SRC_DIR)")"
else
JAR_FILE = $(LIB_DIR)/jmagick-$(MAJOR).$(MINOR).$(MICRO).jar
CLEAN_LIST = $(JAR_FILE)
JAVADOC_DEST = $(DEST)$(JAVADOC_DIR)
JAVADOC_SRC = $(JAVA_SRC_DIR)
endif
all: dir default-target
cd classes; $(JAR) cvf $(JAR_FILE) magick resources
include $(MAKE_PATH)/Make.rules
dir:
@-mkdir -p $(PROJ_BASE_DIR)classes
@-mkdir -p $(PROJ_BASE_DIR)obj
@-mkdir -p $(PROJ_BASE_DIR)generated
@-mkdir -p $(PROJ_BASE_DIR)lib
distclean: clean
@-rm Make.def config.cache config.log config.status
@-rm -rf $(JAVADOC_DIR)
@-rm -rf classes
@-rm -rf autom4te.cache
javadoc:
@-if [ -x "$(JAVADOC)" ]; then \
echo Generating Javadoc files ... ; \
$(INSTALL) -d $(DESTDIR)$(JAVADOC_DIR) ; \
"$(JAVADOC)" -author -version -d $(JAVADOC_DEST) \
-sourcepath $(JAVADOC_SRC) magick magick.util ; \
else \
echo Unable to generate javadoc; \
fi
extra-install::
$(INSTALL) -d $(DESTDIR)$(libdir)
$(INSTALL) $(JAR_FILE) $(DESTDIR)$(libdir)
simpletest::
cd test/magicktest; make simpletest
test::
cd test/magicktest; CLASSPATH=../../lib/junit.jar make test
looptest::
cd test/magicktest; CLASSPATH=../../lib/junit.jar make looptest
generateCorrect::
cd test/magicktest; CLASSPATH=../../lib/junit.jar make generateCorrect