Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. EXTRA_DIST = script.in script2.in
  2. bin2dir = $(bindir)
  3. bin_SCRIPTS = \
  4. al \
  5. cert2spc \
  6. certmgr \
  7. chktrust \
  8. cilc \
  9. disco \
  10. gacutil \
  11. genxs \
  12. ilasm \
  13. makecert \
  14. mbas \
  15. mcs \
  16. mkbundle \
  17. mono-find-provides \
  18. mono-find-requires \
  19. monop \
  20. monoresgen \
  21. resgen \
  22. secutil \
  23. setreg \
  24. signcode \
  25. sn \
  26. soapsuds \
  27. sqlsharp \
  28. wsdl \
  29. xsd
  30. bin2_SCRIPTS = gmcs wsdl2
  31. CLEANFILES = $(bin_SCRIPTS) $(bin2_SCRIPTS)
  32. if USE_JIT
  33. MONO_INTERP = mono
  34. else
  35. MONO_INTERP = mint
  36. endif
  37. if PLATFORM_WIN32
  38. plat_bindir = $(shell cygpath -m $(libdir))
  39. mono_one_instdir = $(shell cygpath -m $(libdir))/mono/1.0
  40. mono_two_instdir = $(shell cygpath -m $(libdir))/mono/2.0
  41. else
  42. plat_bindir = $(bindir)
  43. mono_one_instdir = $(libdir)/mono/1.0
  44. mono_two_instdir = $(libdir)/mono/2.0
  45. endif
  46. REWRITE = sed \
  47. -e 's,@''bindir@,$(bindir),g' \
  48. -e 's,@''plat_bindir@,$(plat_bindir),g' \
  49. -e 's,@''mono_one_instdir@,$(mono_one_instdir),g' \
  50. -e 's,@''mono_two_instdir@,$(mono_two_instdir),g' \
  51. -e 's,@''gtkdir@,$(gtkdir),g' \
  52. -e 's,@''exe_file@,[email protected],g' \
  53. -e 's,@''mono_interp@,$(MONO_INTERP),g'
  54. $(bin_SCRIPTS): script.in Makefile.am
  55. $(REWRITE) $(srcdir)/script.in > [email protected]
  56. mv [email protected] $@
  57. $(bin2_SCRIPTS): script2.in Makefile.am
  58. $(REWRITE) $(srcdir)/script2.in > [email protected]
  59. mv [email protected] $@