[m-rev.] diff: fix source distribution compile problem
Julien Fischer
juliensf at csse.unimelb.edu.au
Mon Sep 24 22:15:01 AEST 2007
Estimated hours taken: 0.2
Branches: main
Fix a problem when compiling the source distribution.
deep_profiler/Mmakefile:
Make sure that the C files for mdprof_procrep are built and
included in the source distribution; otherwise make will try
and build them from the Mercury files - which doesn't work
if you don't have a Mercury compiler installed.
Julien.
Index: Mmakefile
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/deep_profiler/Mmakefile,v
retrieving revision 1.23
diff -u -r1.23 Mmakefile
--- Mmakefile 12 Sep 2007 06:21:10 -0000 1.23
+++ Mmakefile 24 Sep 2007 12:05:12 -0000
@@ -115,6 +115,8 @@
mdprof_dump: $(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A
mdprof_feedback: $(RUNTIME_DIR)/lib$(RT_LIB_NAME).$A
mdprof_feedback: $(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A
+mdprof_procrep: $(RUNTIME_DIR)/lib$(RT_LIB_NAME).$A
+mdprof_procrep: $(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A
# XXX Should also depend on $(BOEHM_GC_DIR)/libgc(_prof).$A, but only
# if in .gc(.prof) grade.
endif
@@ -123,6 +125,7 @@
$(cs_subdir)mdprof_test_init.c: $(UTIL_DIR)/mkinit
$(cs_subdir)mdprof_dump_init.c: $(UTIL_DIR)/mkinit
$(cs_subdir)mdprof_feedback_init.c: $(UTIL_DIR)/mkinit
+$(cs_subdir)mdprof_procrep_init.c: $(UTIL_DIR)/mkinit
#-----------------------------------------------------------------------------#
@@ -146,7 +149,8 @@
$(mdprof_cgi.ms) \
$(mdprof_test.ms) \
$(mdprof_dump.ms) \
- $(mdprof_feedback.ms)
+ $(mdprof_feedback.ms) \
+ $(mdprof_procrep.ms)
.deep_tags: $(MTAGS) $(DEEP_MS) $(MDBCOMP_DIR)/*.m $(LIBRARY_DIR)/*.m
$(MTAGS) $(DEEP_MS) $(MDBCOMP_DIR)/*.m $(LIBRARY_DIR)/*.m
@@ -163,7 +167,7 @@
.PHONY: dates
dates:
touch $(mdprof_cgi.dates) $(mdprof_test.dates) $(mdprof_dump.dates) \
- $(mdprof_feedback.dates)
+ $(mdprof_feedback.dates) $(mdprof_procrep.dates)
#-----------------------------------------------------------------------------#
@@ -172,10 +176,12 @@
os: $(mdprof_test.os) $(os_subdir)mdprof_test_init.o
os: $(mdprof_dump.os) $(os_subdir)mdprof_dump_init.o
os: $(mdprof_feedback.os) $(os_subdir)mdprof_feedback_init.o
+os: $(mdprof_procrep.os) $(os_subdir)mdprof_procrep_init.o
cs: $(mdprof_cgi.cs) $(cs_subdir)mdprof_cgi_init.c
cs: $(mdprof_test.cs) $(cs_subdir)mdprof_test_init.c
cs: $(mdprof_dump.cs) $(cs_subdir)mdprof_dump_init.c
cs: $(mdprof_feedback.cs) $(cs_subdir)mdprof_feedback_init.c
+cs: $(mdprof_procrep.cs) $(cs_subdir)mdprof_procrep_init.c
#-----------------------------------------------------------------------------#
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list