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

Contents of /trunk/make/Makefile.phony

Parent Directory Parent Directory | Revision Log Revision Log


Revision 198 - (show annotations)
Tue Nov 22 04:17:02 2005 UTC (17 years, 4 months ago) by jgs
File size: 5044 byte(s)
fix uninstall target to also clean up static libraries (eg: paso)

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26