Lines Matching refs:makefile
113 void redirect(char * line, char * makefile );
170 char *makefile = NULL; local
330 makefile = argv[0]+2;
331 if (*makefile == '\0') {
332 makefile = *(++argv);
377 redirect(startat, makefile);
656 void redirect(line, makefile) in redirect() argument
658 *makefile; in redirect()
670 if (makefile && *makefile == '-' && *(makefile+1) == '\0')
676 if (!makefile) {
678 makefile = "Makefile";
680 makefile = "makefile";
685 stat(makefile, &st);
686 if ((fdin = fopen(makefile, "r")) == NULL)
687 fatalerr("cannot open \"%s\"\n", makefile);
688 sprintf(backup, "%s.bak", makefile);
693 if (rename(makefile, backup) < 0)
694 fatalerr("cannot rename %s to %s\n", makefile, backup);
699 if ((fdout = freopen(makefile, "w", stdout)) == NULL)
719 chmod(makefile, st.st_mode);