Bugs in 3.6 patch?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bugs in 3.6 patch?

Magicked
Sorry if anyone has mentioned this before.  I wasn't able to find it on this list.

After patching from 3.5 to 3.6, I ran make and came up with a couple of minor issues:

make: *** No rule to make target `olc2/../help/help.h', needed by `olc2/olc.d'. Stop.
make: *** No rule to make target `help/help.h', needed by `gameloop.d'. Stop.

To fix it, I just changed "/help/help.h" to "help2/help.h" in both of the *.d files.  

Hopefully this will save someone a bit of time.  Did anyone else run into this?
Reply | Threaded
Open this post in threaded view
|

Re: Bugs in 3.6 patch?

Patrick M. Nielsen
The .d files are simply lists of dependencies. They don't actually come with
Nakedmud but are created when you first compile using Make and its Makefile.
When filenames change and so on, you may want to rebuild that dependency
index. You can do:
rm *.d */*.d            (please make sure you enter that correctly!)

to do that.

You may be interested in switching to SCons for your build system. It's
quite superior to Make as it handles dependencies automatically. There
should already a SConstruct (Makefile for SCons) in your src folder;

rm *.d */*.d *.o */*.o
sudo aptitude install scons
scons

('scons' is equivalent to 'make')

On Sun, Sep 14, 2008 at 12:08 AM, Magicked <[hidden email]> wrote:

>
> Sorry if anyone has mentioned this before. I wasn't able to find it on this
> list.
>
> After patching from 3.5 to 3.6, I ran make and came up with a couple of
> minor issues:
>
> make: *** No rule to make target `olc2/../help/help.h', needed by
> `olc2/olc.d'. Stop.
> make: *** No rule to make target `help/help.h', needed by `gameloop.d'.
> Stop.
>
> To fix it, I just changed "/help/help.h" to "help2/help.h" in both of the
> *.d files.
>
> Hopefully this will save someone a bit of time. Did anyone else run into
> this?
> --
> View this message in context:
> http://n2.nabble.com/Bugs-in-3.6-patch--tp1087870p1087870.html
> Sent from the NakedMUD mailing list archive at Nabble.com.
>
>  
>
Reply | Threaded
Open this post in threaded view
|

Re: Bugs in 3.6 patch?

Magicked
Ahh, I'm glad I sent this out cause I didn't know that.  Thanks!

-Nate

Patrick M. Nielsen wrote
The .d files are simply lists of dependencies. They don't actually come with
Nakedmud but are created when you first compile using Make and its Makefile.
When filenames change and so on, you may want to rebuild that dependency
index. You can do:
rm *.d */*.d            (please make sure you enter that correctly!)

to do that.

You may be interested in switching to SCons for your build system. It's
quite superior to Make as it handles dependencies automatically. There
should already a SConstruct (Makefile for SCons) in your src folder;

rm *.d */*.d *.o */*.o
sudo aptitude install scons
scons

('scons' is equivalent to 'make')
Reply | Threaded
Open this post in threaded view
|

Re: Bugs in 3.6 patch?

Geoff Hollis
In reply to this post by Patrick M. Nielsen
Yeah, dependencies are built up on the fly every time a file is  
edited. Problem is, some patches change the file structure, which  
screws up dependencies, and in turn makes Make not work. I'd really  
like to change is so that dependencies are only included when make or  
make all are called (but, for instance, not when make clean) is  
called. However, my Makefile-foo is not up to par. If anyone could  
explain how to do this, that would be awesome. Basically, I want the  
correct syntax for the Makefile conditional:

if arg == "" or arg == "all":
   include $(patsubst %.c,%.d, $(SRC))

On Sep 13, 2008, at 6:41 PM, Patrick Mylund Nielsen wrote:

>
> The .d files are simply lists of dependencies. They don't actually  
> come with Nakedmud but are created when you first compile using  
> Make and its Makefile. When filenames change and so on, you may  
> want to rebuild that dependency index. You can do:
>
> rm *.d */*.d            (please make sure you enter that correctly!)
>
> to do that.
>
> You may be interested in switching to SCons for your build system.  
> It's quite superior to Make as it handles dependencies  
> automatically. There should already a SConstruct (Makefile for  
> SCons) in your src folder;
>
> rm *.d */*.d *.o */*.o
> sudo aptitude install scons
> scons
>
> ('scons' is equivalent to 'make')
>
> On Sun, Sep 14, 2008 at 12:08 AM, Magicked <[hidden email]> wrote:
>
> Sorry if anyone has mentioned this before. I wasn't able to find it  
> on this
> list.
>
> After patching from 3.5 to 3.6, I ran make and came up with a  
> couple of
> minor issues:
>
> make: *** No rule to make target `olc2/../help/help.h', needed by
> `olc2/olc.d'. Stop.
> make: *** No rule to make target `help/help.h', needed by  
> `gameloop.d'.
> Stop.
>
> To fix it, I just changed "/help/help.h" to "help2/help.h" in both  
> of the
> *.d files.
>
> Hopefully this will save someone a bit of time. Did anyone else run  
> into
> this?
> --
> View this message in context: http://n2.nabble.com/Bugs-in-3.6- 
> patch--tp1087870p1087870.html
> Sent from the NakedMUD mailing list archive at Nabble.com.
>
>
>
>
>