File: module.mk

package info (click to toggle)
octave 4.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 94,200 kB
  • ctags: 52,925
  • sloc: cpp: 316,850; ansic: 43,469; fortran: 23,670; sh: 13,805; yacc: 8,204; objc: 7,939; lex: 3,631; java: 2,127; makefile: 1,746; perl: 1,022; awk: 988
file content (77 lines) | stat: -rw-r--r-- 2,002 bytes parent folder | download | duplicates (2)
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
69
70
71
72
73
74
75
76
77
JAVAC=javac
JAR=jar

FCN_FILE_DIRS += java

java_FCN_FILES = \
  java/java_get.m \
  java/java_set.m \
  java/javaArray.m \
  java/javaaddpath.m \
  java/javachk.m \
  java/javaclasspath.m \
  java/javamem.m \
  java/javarmpath.m \
  java/usejava.m

FCN_FILES += $(java_FCN_FILES)

PKG_ADD_FILES += java/PKG_ADD

DIRSTAMP_FILES += java/$(octave_dirstamp)

JAR_FILES += java/octave.jar

org_octave_dir = org/octave

JAVA_SRC = \
  $(org_octave_dir)/ClassHelper.java \
  $(org_octave_dir)/OctClassLoader.java \
  $(org_octave_dir)/Octave.java \
  $(org_octave_dir)/OctaveReference.java \
  $(org_octave_dir)/Matrix.java \
  $(org_octave_dir)/JDialogBox.java \
  $(org_octave_dir)/DlgListener.java \
  $(org_octave_dir)/TeXtranslator.java \
  $(org_octave_dir)/TeXcode.java

JAVA_CLASSES = $(JAVA_SRC:.java=.class)

JAVA_IMAGES = \
  $(org_octave_dir)/images/question.png \
  $(org_octave_dir)/images/error.png \
  $(org_octave_dir)/images/warning.png \
  $(org_octave_dir)/images/information.png \
  $(org_octave_dir)/images/octave.png

java_JAVA_SRC = $(addprefix java/, $(JAVA_SRC))

java_JAVA_CLASSES = $(addprefix java/, $(JAVA_CLASSES))

java_JAVA_IMAGES = $(addprefix java/, $(JAVA_IMAGES))

srcdir_java_JAVA_IMAGES = $(addprefix $(srcdir)/java/, $(JAVA_IMAGES))

%.class : %.java
	$(AM_V_GEN)$(MKDIR_P) java/$(org_octave_dir) && \
	( cd $(srcdir)/java; "$(JAVAC)" -source 1.3 -target 1.3 -d $(abs_builddir)/java $(org_octave_dir)/$(<F) )

java/images.stamp: $(srcdir_java_JAVA_IMAGES)
	$(AM_V_GEN)if [ "x$(srcdir)" != "x." ]; then \
	  $(MKDIR_P) java/$(org_octave_dir)/images; \
	  cp $(srcdir_java_JAVA_IMAGES) java/$(org_octave_dir)/images; \
	fi && \
	touch $@

java/octave.jar: java/images.stamp $(java_JAVA_CLASSES)
	$(AM_V_GEN)rm -f $@-t $@ && \
	( cd java; \
	  "$(JAR)" cf octave.jar-t $(JAVA_CLASSES) $(JAVA_IMAGES) ) && \
	mv $@-t $@

EXTRA_DIST += $(JAR_FILES) $(java_JAVA_SRC) $(java_JAVA_IMAGES)

CLEANFILES += $(JAR_FILES) $(java_JAVA_CLASSES)

DISTCLEANFILES += java/images.stamp