Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).

Assignment 2 and Clarifications.
RSS cloud
Jump to:

Assignment 2 - Q1

1 of 390 articles shown, currently no other people reading this forum.
From: Christopher M.
Date: Tue 12th May, 2:58pm
Sounding much better!

"Nathan Scott"                               wrote:

> ok, I get it now, I did not understand the target thing and that you could run a bash script from make.  Basically the 

Yes, make will run any/many actions, asking bash to run the actions for it.
make has 'no idea' what it is executing, it just asks bash to do it.

> So running this from the terminal: 
> make -f xxxx yyyy  
> will run the arbitrarily named makefile 'xxxx' with 'make' and output the evaluation of the target 'yyyy'.  All the 
> dependencies etc are specified within 'xxxx' for the target 'yyyy'

Yes, though say 'make performs the actions required to build yyyy.
If the commands yyyy don't produce any output (typically to the screen) make will not provide any extra output other than 
reporting it's about to ask bash to run  yyyy

> so for example 'xxxx' could contain:
> ---------------------------------------------
> yyyy : 
>         bash a_bash_script arg1 arg2 ....
> ---------------------------------------------

Yes, exactly.  Onward and upward!

Related articles

Assignment 2, Q1 (all 16) RSS
├─ original   Mon 11th May, 4:47pm, Mingbo Z.
├─ reply 1   Mon 11th May, 5:04pm, Christopher M.
├─ reply 2   Tue 12th May, 12:03pm, Nathan S.
├─ reply 3   Tue 12th May, 12:18pm, Christopher M.
├─ reply 4   Tue 12th May, 12:39pm, Nathan S.
├─ reply 5   Tue 12th May, 2:21pm, Christopher M.
├─ reply 6   Tue 12th May, 2:47pm, Nathan S.
├─ THIS   Tue 12th May, 2:58pm, Christopher M.
├─ reply 8   Tue 12th May, 7:56pm, David M.
├─ reply 9   Tue 12th May, 10:42pm, Thanh T.
├─ reply 10   Wed 13th May, 6:43am, Christopher M.
├─ reply 11   Wed 27th May, 1:19pm, Matthew W.
├─ reply 12   Wed 27th May, 3:42pm, Christopher M.
├─ reply 13   Wed 27th May, 4:50pm, Jichunyang L.
├─ reply 14   Thu 28th May, 9:39am, Christopher M.
└─ reply 15   Sun 31st May, 11:38am, Akhil E.
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020