Is this the correct syntax to make sure the dependent program is downloaded and installed?
If the package name is correct, this is the correct syntax to make make packages
work. It does assume that the person running the program has sudo rights to execute apt-get
. It also runs that command unconditionally for make packages
, but that shouldn't be too much of a problem because apt-get
will check if the package is already installed.
The main problem is that make all
doesn't execute make packages
, which can be accomplished with
all: myprogram.c packages
# command
Since apt-get
is inherently non-portable, it's correct if it works on your box :)