28 lines
273 B
C
28 lines
273 B
C
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int
|
|
run_make_task(char task[])
|
|
{
|
|
char *build_args[] = {
|
|
"/bin/make",
|
|
task,
|
|
NULL
|
|
};
|
|
|
|
execvp(
|
|
"/bin/make",
|
|
build_args
|
|
);
|
|
if (errno != 0 ) {
|
|
return errno;
|
|
}
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
run_make_task("help");
|
|
}
|