Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 38580  / 2 Years ago, wed, october 26, 2022, 11:08:23

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:




  1. 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.

  2. compress /etc/hosts in /tmp using gzip (probably here should be something like



    gzip -c SOURCE DESTINATION # ?? 



Cheers


More From » makefile

 Answers
1

to answer your question I cant give you a one line / paragraph answer because it deals with every thing.Read the first link it have everything you need with examples too.



Good tutorial that can explain everything about make




[#29900] Friday, October 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
issfullus

Total Points: 264
Total Questions: 126
Total Answers: 107

Location: Comoros
Member since Mon, Dec 19, 2022
1 Year ago
;