• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Easy UNIX question

RalphTheCow

Golden Member
Can you use the make command to copy directories? I think the system I'm working on does that if you type make filename, and stores it in filename.tar.Z.

I'm a casual UNIX user, and the man page as usual doesn't help much. Does this sound reasonable?
 
That's not what make does, make is there to easy the compilation and installation of programs.
It uses a Makefile to compile stuff properly, this makefile specifies header dependencies and such.

The old "./configure && make && make install" is how most people get in touch with make.

If you wanna copy directories, just use "cp -r", that's what it's there for.
If you wanna tar a directory, use "tar -cf /path/to/your/file.tar /the/dir/your/wanna/tar".

[edit] Oh and here is the OpenBSD make manpage, FYI.
Explains it pretty well.
 
Actually make can be used for all kinds of things, not just building. But in general you might as well just use scripts for the other stuff. Make sucks. 😛 (actually it's kinda cool for little stuff, but it quickly grows into insanity)
 
OK, this is on a Solaris 2.5 system. How can I find out how the command "make filename" works? File "filename" is nowhere on the system that I can find, but running this command produces filename.tar.Z in the /opt directory. I found a default make.rules file in /usr/share/lib/make, but it looks like an explosion in a puncuation factory to me.
 
How can I find out how the command "make filename" works?

Read the manpage Sunner linked to? 😕

make looks for the file "Makefile" in the current directory and does things based on the rules contained therein.
 
Oops, I needed ls -A to see that hidden Makefile, my habit is to use l, a link to ls -l.

Hey, I told you it was an easyquestion.
 
Originally posted by: HKSturboKID
I guess Make is the symbolic link to makefile then.

No, make is a program which reads in a makefile and then does things based on what's in it. The makefile itself is not executed, and even if it were, a symbolic link can't even work in the way that we're talking about.
 
Originally posted by: BingBongWongFooey
Actually make can be used for all kinds of things, not just building. But in general you might as well just use scripts for the other stuff. Make sucks. 😛 (actually it's kinda cool for little stuff, but it quickly grows into insanity)

Yeah, well I don't think alot of people use it for much more than the above mentioned use, even though I guess you could use it for most anything if you really really wanted 😉
 
Originally posted by: Sunner
Originally posted by: BingBongWongFooey
Actually make can be used for all kinds of things, not just building. But in general you might as well just use scripts for the other stuff. Make sucks. 😛 (actually it's kinda cool for little stuff, but it quickly grows into insanity)

Yeah, well I don't think alot of people use it for much more than the above mentioned use, even though I guess you could use it for most anything if you really really wanted 😉

I've seen some pretty byzantine make systems that did all sorts of things beyond just building the code. Complete PITA to maintain ... I hate makefiles, but haven't come across anything better just yet.
 
Originally posted by: Armitage
Originally posted by: Sunner
Originally posted by: BingBongWongFooey
Actually make can be used for all kinds of things, not just building. But in general you might as well just use scripts for the other stuff. Make sucks. 😛 (actually it's kinda cool for little stuff, but it quickly grows into insanity)

Yeah, well I don't think alot of people use it for much more than the above mentioned use, even though I guess you could use it for most anything if you really really wanted 😉

I've seen some pretty byzantine make systems that did all sorts of things beyond just building the code. Complete PITA to maintain ... I hate makefiles, but haven't come across anything better just yet.

scons?
 
Originally posted by: Armitage
Originally posted by: Sunner
Originally posted by: BingBongWongFooey
Actually make can be used for all kinds of things, not just building. But in general you might as well just use scripts for the other stuff. Make sucks. 😛 (actually it's kinda cool for little stuff, but it quickly grows into insanity)

Yeah, well I don't think alot of people use it for much more than the above mentioned use, even though I guess you could use it for most anything if you really really wanted 😉

I've seen some pretty byzantine make systems that did all sorts of things beyond just building the code. Complete PITA to maintain ... I hate makefiles, but haven't come across anything better just yet.

Yeah, I've ran into a few weird uses for make too, I hate that crap.
Some people seem to just love making things complicated.
 
Originally posted by: BingBongWongFooey
Originally posted by: Armitage
Originally posted by: Sunner
Originally posted by: BingBongWongFooey
Actually make can be used for all kinds of things, not just building. But in general you might as well just use scripts for the other stuff. Make sucks. 😛 (actually it's kinda cool for little stuff, but it quickly grows into insanity)

Yeah, well I don't think alot of people use it for much more than the above mentioned use, even though I guess you could use it for most anything if you really really wanted 😉

I've seen some pretty byzantine make systems that did all sorts of things beyond just building the code. Complete PITA to maintain ... I hate makefiles, but haven't come across anything better just yet.

scons?

I looked into that once when it was still beta. To be honest, it didn't look that much better then make to me. Maybe I'll have another look.
At the moment, my builds are failry simple, so make isn't to bad. That and I haven't written any significant C/C++ in months 🙁
 
Back
Top