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

Annotation of /trunk/make/Makefile.phony

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations)
Tue Dec 14 05:39:33 2004 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/esys2/make/Makefile.phony
File size: 4255 byte(s)
*** empty log message ***

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26