/[escript]/trunk/make/Makefile.phony
ViewVC logotype

Contents of /trunk/make/Makefile.phony

Parent Directory Parent Directory | Revision Log Revision Log


Revision 122 - (show annotations)
Thu Jun 9 05:38:05 2005 UTC (14 years, 3 months ago) by jgs
Original Path: trunk/esys2/make/Makefile.phony
File size: 5014 byte(s)
Merge of development branch back to main trunk on 2005-06-09

1 # $Id$
2
3 # Phony Targets
4 # Define phony target rules which actually enact building and cleaning
5
6 # These targets are phony and should always be built when requested
7 .PHONY: all default clean pyc force
8
9 # Make the default target if no otherwise suitable rules can be found
10 .DEFAULT: default
11
12 # #############################################################################
13 # If no target is specified, "all" is the first target to be found and made
14 # #############################################################################
15 all: default
16
17 install: all
18 @echo ----------------------------------------------------------------------------
19 @if test -n "${INSTALL_PYTH}";\
20 then \
21 install -v ${INSTALL_PYTH} ${L_PYTH_DIR};\
22 fi
23 @echo Installed ${INSTALL_PYTH} to ${L_PYTH_DIR}.
24 @if test -n "${INSTALL_LIB}";\
25 then \
26 install -v ${INSTALL_LIB} ${L_INSTLIB_DIR};\
27 fi
28 @echo Installed ${INSTALL_LIB} to ${L_INSTLIB_DIR}.
29 @echo ----------------------------------------------------------------------------
30
31 uninstall:
32 @echo ----------------------------------------------------------------------------
33 @rm -rf ${L_PYTH_DIR}/*.py
34 @rm -rf ${L_PYTH_DIR}/*.pyc
35 @rm -rf ${L_PYTH_DIR}/*.pyo
36 @echo Uninstalled ${L_PYTH_DIR}.
37 @rm -rf ${L_INSTLIB_DIR}/*.so
38 @echo Uninstalled ${L_INSTLIB_DIR}.
39 @echo ----------------------------------------------------------------------------
40
41 # Make default target and print source files that were found
42 default: ${DEFAULT_TARGET}
43 @if test -n "${CPP_SRC}";\
44 then\
45 echo "C++ source files: ${CPP_SRC}";\
46 fi
47 @if test -n "${CC_SRC}";\
48 then\
49 echo "C source files: ${CC_SRC}";\
50 fi
51
52 # Clean: remove dependency, library, object, swig and target files
53 clean:
54 @echo ----------------------------------------------------------------------------
55 @rm -rf ${filter-out %CVS, ${wildcard ${L_DEP_DIR}/src}}
56 @rm -rf ${filter-out %CVS, ${wildcard ${L_DEP_DIR}/*.d}}
57 @rm -rf ${filter-out %CVS, ${wildcard ${L_LIB_DIR}/lib*}}
58 @rm -rf ${filter-out %CVS, ${wildcard ${L_LIB_DIR}/py_src/*.pyc}}
59 @rm -rf ${filter-out %CVS, ${wildcard ${L_OBJ_DIR}/src}}
60 @rm -rf ${filter-out %CVS, ${wildcard ${L_OBJ_DIR}/*.o}}
61 @rm -rf ${addprefix ${L_SRC_DIR}/, ${SWIG_CPP_SRC}}
62 @rm -rf ${addprefix ${L_SRC_DIR}/, ${SWIG_PY_SRC}}
63 @rm -rf ${DEFAULT_TARGET}
64 @echo Cleaned.
65
66 # Phony force target for targets of which remake must always happen
67 force:
68
69 # Python byte-code target
70 pyc: ${PYTHON_BYTE}
71
72 # Always remake the default target
73 ${DEFAULT_TARGET}:
74
75 # $Log$
76 # Revision 1.7 2005/06/09 05:38:03 jgs
77 # Merge of development branch back to main trunk on 2005-06-09
78 #
79 # Revision 1.1.1.1.2.10 2005/05/20 04:31:17 jgs
80 # fix cleanup of lib/py_src directory
81 #
82 # Revision 1.1.1.1.2.9 2005/05/18 07:02:39 jgs
83 # all python code now compiled to .pyc files with "-O -O" options
84 #
85 # Revision 1.1.1.1.2.8 2005/05/17 10:43:59 jgs
86 # fixed uninstall target
87 #
88 # Revision 1.1.1.1.2.7 2005/05/17 01:31:15 jgs
89 # set L_INSTLIB_DIR and L_PYTH_DIR defaults relative to ESYS_ROOT
90 #
91 # Revision 1.1.1.1.2.6 2005/05/12 11:47:44 gross
92 # some minor changes in output
93 #
94 # Revision 1.1.1.1.2.5 2005/04/04 06:52:11 jgs
95 # Minor change to display installation target directory.
96 #
97 # Revision 1.1.1.1.2.4 2004/12/08 03:59:13 jgs
98 # reimplemented make install target:
99 # - python modules now installed to $L_PYTH_DIR which defaults to $ESYS_ROOT/esys
100 # - .so libraries now installed to $L_INSTLIB_DIR which defaults to $ESYS_ROOT/lib
101 # need to make symlinks from $L_PYTH_DIR to .so files in $L_INSTLIB_DIR
102 # also implemented uninstall make target, which cleans out $L_PYTH_DIR
103 # and $L_INSTLIB_DIR
104 #
105 # Revision 1.1.1.1.2.3 2004/12/07 05:03:06 jgs
106 # Fixed install target to handle modules with empty install lists.
107 #
108 # Revision 1.1.1.1.2.2 2004/12/07 01:01:44 jgs
109 # expand message printed out by install target
110 #
111 # Revision 1.1.1.1.2.1 2004/12/06 06:06:26 jgs
112 # setup an "install" target which installs libraries specified by ${INSTALL_TARGET}
113 # into the directory ${L_INST_DIR} which defaults to $(L_LIB_DIR)/esys. "esys" is
114 # the python package under which the other esys libraries are python modules.
115 #
116 # Revision 1.1.1.1 2004/10/26 06:53:58 jgs
117 # initial import of project esys2
118 #
119 # Revision 1.2.2.2 2004/09/28 07:03:13 jgs
120 # *** empty log message ***
121 #
122 # Revision 1.2.2.1 2004/09/27 06:44:58 jgs
123 # refined clean target actions
124 #
125 # Revision 1.2 2004/09/23 01:48:46 jgs
126 # make: augmented Makefiles with comments throughout
127 #
128 # Makefile.default - changed order of includes for clarity
129 # Makfile.phony - reordered phony targets
130 # - added target "all" - now first target to be encountered
131 #
132 # Revision 1.1.1.1 2004/06/24 04:00:39 johng
133 # Initial version of eys using boost-python.
134 #
135 # Revision 1.3 2003/08/25 02:14:10 davies
136 # Force builds of linked objects.
137 #
138 # Revision 1.2 2003/08/21 07:12:16 davies
139 # Fixed accidental deletion of CVS directory during "make clean".
140 #
141 # Revision 1.1.1.1 2003/08/21 00:58:20 davies
142 # Imported sources from Lutz Gross.
143 #

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26