makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #****************************************************************************
  2. #
  3. # Copyright (c) 1993,96 by Florian Klaempfl
  4. #
  5. #****************************************************************************
  6. #
  7. # makefile for FPKPascal
  8. #
  9. #####################################################################
  10. # Start of configurable section
  11. #####################################################################
  12. # Set REFPATH if you want to generate diffs to a standard RTL
  13. ifndef REFPATH
  14. REFPATH=/usr/local/fpk/work/new/rtl
  15. endif
  16. ifndef DIFF
  17. DIFF=diff
  18. endif
  19. ifndef DIFFOPTS
  20. DIFFOPTS=-b -c
  21. endif
  22. #######################################################################
  23. # End of configurable section.
  24. # Do not edit after this line.
  25. #######################################################################
  26. # Check copy delete commands.
  27. # You need cp from GNU to handle / as directory separator
  28. ifeq ($(DOS),YES)
  29. COPY=cp -p -f
  30. DEL=del
  31. else
  32. COPY=cp -p -f
  33. DEL=rm
  34. endif
  35. PASFILES =
  36. PPFILES = strings.pp
  37. INCFILES =
  38. .PHONY: clean diffclean diffs
  39. clean:
  40. -$(DEL) *.dif
  41. diffclean:
  42. -$(DEL) *.dif
  43. %.dif : %.inc
  44. -$(DIFF) $(DIFFOPTS) $*.inc $(REFPATH)/template/$*.inc > $*.dif
  45. %.dif : %.pp
  46. -$(DIFF) $(DIFFOPTS) $*.pp $(REFPATH)/template/$*.pp > $*.dif
  47. %.dif : %.pas
  48. -$(DIFF) $(DIFFOPTS) $*.pas $(REFPATH)/template/$*.pas > $*.dif
  49. makefile.dif : makefile
  50. -$(DIFF) $(DIFFOPTS) makefile $(REFPATH)/template/makefile > makefile.dif
  51. diffs : $(patsubst %.inc,%.dif,$(INCFILES)) \
  52. $(patsubst %.pp,%.dif,$(PPFILES)) \
  53. $(patsubst %.pas,%.dif,$(PASFILES)) \
  54. makefile.dif