[m-rev.] diff: fix Mmakefile bug with profiling builtins
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Aug 13 20:36:02 AEST 2002
Estimated hours taken: 0.5
Branches: main
runtime/Mmakefile:
Fix a couple of things related to the addition of the
automatically-generated mercury_profiling_builtin.{c,h} files:
- Add code to the rule for `mmake realclean' to remove them.
- Add a dependency
mercury_profiling_builtin.c: mercury_profiling_builtin.h
This is needed to avoid problems with parallel make.
Workspace: /home/ceres/fjh/ws-ceres2/mercury
Index: runtime/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/Mmakefile,v
retrieving revision 1.91
diff -u -d -r1.91 Mmakefile
--- runtime/Mmakefile 9 Aug 2002 05:26:46 -0000 1.91
+++ runtime/Mmakefile 13 Aug 2002 10:19:14 -0000
@@ -251,6 +251,7 @@
# ../tools/make_port_code makes both the .c and the .h file of the
# mercury_profiling_builtin module.
+mercury_profiling_builtin.c: mercury_profiling_builtin.h
mercury_profiling_builtin.h: mercury_deep_call_port_body.h \
mercury_deep_redo_port_body.h \
mercury_deep_leave_port_body.h \
@@ -410,5 +411,6 @@
realclean_local:
rm -f lib$(RT_LIB_NAME).$A lib$(RT_LIB_NAME).so $(RT_LIB_NAME).init
rm -f mercury_conf.h mercury_conf.h.date
+ rm -f mercury_profiling_builtin.c mercury_profiling_builtin.h
#-----------------------------------------------------------------------------#
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list