forked from apache/xerces2-j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 1.19 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
include ./src/Makefile.incl
all: compile jars apidocs package
compile: compile_src compile_samples
package: package_bin package_src
compile_src:
echo Building Source
${MAKE} -C src
compile_samples: compile_src
echo Building Samples
${MAKE} -C samples
jars: compile
echo Building Jar files in bin directory
${MKDIR} class
${MKDIR} bin
${MAKE} -C src jars
apidocs:
echo Building apiDocs in docs directory
${MKDIR} docs/apiDocs
${MAKE} -C src apidocs
package_bin: jars apidocs ${BINZIPFILE}
${BINZIPFILE}: ./src/classfiles_updated
echo Building a zip file and a tar.gz file
${MKDIR} bin
${CP} -r docs bin
${CP} -r data bin
mv bin xerces-${PRODUCTVERSION}
zip -r ${BINZIPFILE} xerces-${PRODUCTVERSION}
tar cvf ${BINTARFILE} xerces-${PRODUCTVERSION} ; gzip -f ${BINTARFILE}
mv xerces-${PRODUCTVERSION} bin
package_src: ./source/src/Makefile
./source/src/Makefile: ./src/classfiles_updated
${MAKE} -C src package_src
${CP} -r data source
mv source xerces-${PRODUCTVERSION}
zip -r ${SRCZIPFILE} xerces-${PRODUCTVERSION}
tar cvf ${SRCTARFILE} xerces-${PRODUCTVERSION} ; gzip -f ${SRCTARFILE}
mv xerces-${PRODUCTVERSION} source
clean:
${MAKE} -C src clean
${MAKE} -C samples clean