execute the instruction written in curr_action->args, by forking and using execvp in the child process. 
void execute_instructions(Rule* rule)
{
  printf("building %s\n", rule->target);
  Action* curr_action = rule->actions;
  while(curr_action != NULL)
  {
    int f = fork();
    if(f < 0)
    {
      perror("fork");
      exit(1);
    } else if(f == 0)// we are in the child
    {
      //run instructions
      printf("Child");
      char* recipie;
      recipie = args_to_string(curr_action->args, recipie, MAXLINE);
      printf("%s\n", recipie);
      execvp(curr_action->args[0], curr_action->args);
    } else 
    {
      int status;
      if(wait(&status) == -1)
      {
        perror("wait");
        exit(1);
      }
    }
    curr_action = curr_action->next_act;
  }
  
}
