home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / psgraph / part01 / examples / Makefile < prev    next >
Encoding:
Makefile  |  1992-09-06  |  612 b   |  33 lines

  1. #
  2. # Makefile to generate PostScript from psgraph examples
  3. #
  4.  
  5. # Where to find the psgraph and psgsimp programs
  6. PSGRAPH = psgraph
  7. PSGSIMP = psgsimp
  8.  
  9. PLOTS = rbi.ps rbi2.ps wire-fusing.ps oneconn.ps distribb.ps long.ps \
  10.     shorter.ps simplecolor.ps
  11.  
  12. # People like to use different suffixes
  13. .SUFFIXES: .ps .grf .plot .data
  14.  
  15. .data.ps:
  16.     $(PSGRAPH) -P <$*.data >$*.ps
  17.  
  18. .plot.ps:
  19.     $(PSGRAPH) -P <$*.plot >$*.ps
  20.  
  21. .grf.ps:
  22.     $(PSGRAPH) -P <$*.grf >$*.ps
  23.  
  24.  
  25. all: $(PLOTS)
  26.  
  27. clean:
  28.     rm -f $(PLOTS) shorter.plot
  29.  
  30. shorter.plot: long.plot Makefile
  31.     $(PSGSIMP) 0.01 <long.plot |grep -v '^#' >shorter.plot
  32.     wc long.plot shorter.plot
  33.