home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / listmana.sha / makefile < prev    next >
Makefile  |  1986-07-10  |  629b  |  39 lines

  1.  
  2. .c.o:
  3.     cc $(CFLAGS) -o $@ $*.c
  4.     echo cp -f $*.c $@ 1:list/ >>backup
  5.  
  6. all:    test
  7.     echo \\\'make all\\\' done
  8.  
  9. clean:
  10.     rm test.code test.o
  11.  
  12. clobber:
  13.     rm test
  14.  
  15. test: backup m.t test.code tr.t
  16.     rgen test.r
  17.     echo echo test >>backup
  18.     echo cp -f test 1:list/ >>backup
  19.     backup
  20.     rm backup
  21.  
  22. backup:
  23.     echo echo backing up the following files >backup
  24.  
  25. m.t:    makefile
  26.     echo written after makefile changed >m.t
  27.     echo cp -f makefile m.t 1:list/ >>backup
  28.  
  29. test.code:    test.o
  30.     ln -mt -o test.code $${CLIB}sacroot.o test.o -lc -b cc48
  31.  
  32. test.o:    test.c
  33.  
  34.  
  35. tr.t:    test.r
  36.     echo written after test.r changed >tr.t
  37.     echo cp -f test.r tr.t 1:list/ >>backup
  38.  
  39.