home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / other / am / makefile < prev    next >
Encoding:
Makefile  |  1993-07-30  |  712 b   |  31 lines

  1. NAME    = am.ttp
  2.  
  3. CFLAGS    = -O2
  4. LDFLAGS    = -o $(NAME) -s
  5. LIBS    = -lpml
  6.  
  7. # will place things in ~/bin and ~/man
  8. DEST    = /usr/local
  9.  
  10. $(NAME) : am.c patchlevel.h
  11.     $(CC) $(CFLAGS) am.c $(LDFLAGS) $(LIBS)
  12.     chmod 755 $(NAME)
  13.  
  14. install: $(NAME)
  15.     @echo "Installing $(NAME) in $(DEST)..."
  16.     cp $(NAME) $(DEST)/bin
  17. #    cp am.sh $(DEST)/bin/$(NAME).sh        # if you want the script
  18.     cp am.1 $(DEST)/man/man1/$(NAME).1
  19.  
  20. example:
  21.     @echo "Checking example 1..."
  22.     example.1 | diff output.1 -
  23.     @echo "Checking example 2..."
  24.     example.2 | diff output.2 -
  25.     @echo "Checking example 3..."
  26.     example.3 | diff output.3 -
  27.     @echo "If there is no output from diff, the tests verified."
  28.  
  29. shar:
  30.     shar `cat MANIFEST` > shar.am
  31.