home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / makemak.lzh / MAK_HELP.C < prev    next >
C/C++ Source or Header  |  1988-02-21  |  820b  |  32 lines

  1. /*
  2.     mak_help.c -- display a help page for the makemak program
  3. */
  4.  
  5. /*    Last revised : Sun February 21, 1988 at 1:14:59 pm*/
  6. /* Loran W. Richardson */
  7.  
  8. #include <stdio.h>                /* standard stuff        */
  9.  
  10. void mak_help(char *pname)
  11. {
  12.  
  13.     static char *help_string[] =
  14.         {
  15.         "Where [options] is one or more of the following:",
  16.         "-d\tdepends - show dependencies in 'make' style format",
  17.         "-h,-H\thelp - give some help on the starting flags",
  18.         "-s\tshow times of all files checked",
  19.         "-v\tverbose - show all includes in verbose format",
  20.         "",
  21.         "and fname is the name of the target file generated by make."
  22.         };
  23.  
  24.     int i, n = sizeof(help_string) / sizeof(char *);
  25.  
  26.     fprintf(stderr, "Usage: %s [options] fname\n\n", pname);
  27.     for (i = 0; i < n; ++i)
  28.         fprintf(stderr, "%s\n", help_string[i]);
  29.  
  30.     return;
  31. }
  32.