Saturday, 17 August 2013

What is a makefile exactly and how we can create one?

What is a makefile exactly and how we can create one?

I know this is a silly question, but since I am trying so hard to learn
linux by myself, I need some help from you fellows.
I found this task on the internet and I am trying to solve it but I don't
understand exactly how can I use makefiles in linux and how can I create
them.
Let's suppose my print working directory is /home/george/Documents
I want to create a makefile which does the following:
Displays a message as follows "hello work, today is Sun". Sun comes from
Sunday. So I must use date command in this make file to display just first
three letters.
compress /etc/hosts in /tmp using gzip (probably here should be something
like
gzip -c SOURCE DESTINATION # ??
Cheers

No comments:

Post a Comment