On Wed, Aug 28, 2019 at 5:37 PM Yegappan Lakshmanan <[email protected]> wrote:
>
> Hi Tony,
>
> On Tue, Aug 27, 2019 at 11:17 PM Tony Mechelynck
> <[email protected]> wrote:
> >
> > Dear Yegappan,
> >
> > Recently you've been proposing (and Bram has accepted) to create a lot
> > of new source files to make the existing source easier to understand.
> > The notion is laudable but it doesn't work well with my shadow
> > directories: every time there is a new .c source (or .h; .pro sources
> > are taken care of automatically by virtue of their being in a special
> > src/proto directory for which a symlink has ben creted once and for
> > all in the shadow directory), I have to manually create a symlink
> > newsourcename.c -> ../newsourcename.c in each shadow directory,
> > otherwise the "make" step ends in error with "No rule to make
> > newsourcename.c. Stop.".
> >
>
> I don't use the shadow directories, so I didn't see this problem before.
>
> Do you just run "make shadow" to create the shadow directory
> and build from there? How do you make use of the shadow
> directory?
>
> When I run "make shadow" in a newly pulled view, the symbolic links
> to all the .c files from the src directory are created in the shadow 
> directory.
>
> Are you trying to update an existing shadow directory? Are the
> symbolic links to the new .c files created if you clean the view and run
> "make shadow" again?
>
> Regards,
> Yegappan

1) Once and for all:
in the src directory: "make shadow" (or "SHADOWDIR=shadow-huge make -e
shadow" or similar) creates a shadow directory as a subdirectory of
the src directory and fills it with soft links to the sources in src
(see the "shadow" target ion src/Makefile for details)
2) Thereafter, I don't recreate the shadow directory every time: I cd
to the shadow directory and use it for incremental compiles, using the
Makefile in it (which is originally a copy of the src/Makefile but I
replace that by a symlink so updates to the Makefile are automatically
applied). If new source files were created _after_ I created the
shadow directory, they aren't automatically picked up.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXtfdOtcLYR4OL5CcjXbFTqiHwPLPxE3ztS%2BNwbYNd9chQ%40mail.gmail.com.

Raspunde prin e-mail lui