source: trunk/lang/octave/octave3/Makefile.in @ 5119

Last change on this file since 5119 was 3471, checked in by ldelgass, 11 years ago

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

File size: 1.7 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12destdir         = $(libdir)/octave3
13
14INSTALL         = @INSTALL@
15MKDIR_P         = @MKDIR_P@
16VPATH           = $(srcdir)/../src
17RM              = rm -f
18
19OCT             = @MKOCTFILE3@
20INCLUDES    = \
21                -I$(srcdir) \
22                -I$(srcdir)/../../../src/core \
23                -I$(prefix)/include
24DEFINES     =
25LIBS        = -L../../../src/core -lrappture
26OCT_FLAGS   = $(INCLUDES) $(DEFINES)
27
28OBJS        = \
29                rpAddPresets.oct \
30                rpUtilsProgress.oct \
31                rpLib.oct \
32                rpLibChildrenByType.oct \
33                rpLibChildren.oct \
34                rpLibElementAsComp.oct \
35                rpLibElementAsId.oct \
36                rpLibElementAsObject.oct \
37                rpLibElementAsType.oct \
38                rpLibElement.oct \
39                rpLibGet.oct \
40                rpLibGetData.oct \
41                rpLibGetString.oct \
42                rpLibGetDouble.oct \
43                rpLibNodeComp.oct \
44                rpLibNodeId.oct \
45                rpLibNodeType.oct \
46                rpLibPut.oct \
47                rpLibPutDouble.oct \
48                rpLibPutString.oct \
49                rpLibPutFile.oct \
50                rpLibResult.oct \
51                rpLibXml.oct \
52                rpUnitsConvert.oct \
53                rpUnitsConvertDbl.oct \
54                rpUnitsConvertStr.oct \
55                rpUnitsConvertObjDbl.oct \
56                rpUnitsConvertObjStr.oct \
57                rpUnitsDefineUnit.oct \
58                rpUnitsFind.oct \
59                rpUnitsGetBasis.oct \
60                rpUnitsGetExponent.oct \
61                rpUnitsGetUnits.oct \
62                rpUnitsGetUnitsName.oct
63
64.PHONY: all install clean distclean
65
66all: $(OBJS)
67
68.SUFFIXES: .cc .o .oct
69
70.o.oct:
71        $(OCT) $(OCT_FLAGS) $< -o $@ $(LIBS)
72
73.cc.o:
74        $(OCT) $(OCT_FLAGS) -c $< -o $@
75
76install: all
77        $(MKDIR_P) -m 0755 $(destdir)
78        for i in $(OBJS) ; do \
79          $(INSTALL) -m 0444  $$i $(destdir) ; \
80        done
81
82clean:
83        $(RM) $(OBJS)
84
85distclean: clean
86        $(RM) Makefile *~
87
Note: See TracBrowser for help on using the repository browser.