[mercury-users] Importing modules from a different directory (MCFLAGS=-I../other_dir/)
Ondrej Bojar
oboj7042 at ss1000.ms.mff.cuni.cz
Wed Jan 30 19:33:13 AEDT 2002
Hi.
I'm trying to split my project into separate directories:
dirA/moduleA.m
dirB/mainmodule.m
where mainmodule.m imports moduleA
(:- import_module moduleA.)
I want to be able to compile the mainmodule executable in dirB, so I made:
dirB/Mmakefile:
MCFLAGS=-I../dirA
Then in dirB:
-------------
mmake mainmodule.depend
calls mmc --generate-dependencies --grade asm_fast.gc -I../dirA mainmodule
and succeeds.
But then mmake mainmodule fails with:
*** No rule to make target `moduleA.int', needed by `mainmodule.c_date'.
Stop.
Is mmake ready for working in more than one directory? And how about with
autorebuilding when sources in the other directory change?
Thanks, Andrew.
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list