Makefile.am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. MCS = mcs
  2. RUNTIME = mono
  3. MCSFLAGS = -debug+
  4. # To build a reduced mono runtime with support only for some locales, # run:
  5. # make minimal
  6. # To build with a single locale (en_US), run:
  7. # make minimal MINIMAL_LOCALES=en_US
  8. # MINIMAL_LOCALES is a regular expression over the filenames in locales.
  9. # make minimal saves about 60 KB of the mono binary size.
  10. # To create the tables for all the supported locales, use:
  11. # make culture-table
  12. # After make minimal or make culture-table, you need to run:
  13. # make install-culture-table
  14. # to copy the needed files where the mono build will pick them up.
  15. MINIMAL_LOCALES=en
  16. CLEANFILES = locale-builder.exe culture-info-tables.h
  17. locale_builder_sources = Driver.cs \
  18. CalendarType.cs \
  19. Constants.cs \
  20. Patterns.cs \
  21. CultureInfoEntry.cs \
  22. DateTimeFormatEntry.cs \
  23. NumberFormatEntry.cs \
  24. RegionInfoEntry.cs \
  25. TextInfoEntry.cs \
  26. Entry.cs
  27. EXTRA_DIST = $(locale_builder_sources) lcids.xml
  28. locale-builder.exe: $(locale_builder_sources)
  29. $(MCS) $(MCSFLAGS) /out:$@ $^
  30. culture-table: locale-builder.exe locale-data
  31. $(RUNTIME) locale-builder.exe
  32. minimal: locale-builder.exe locale-data
  33. $(RUNTIME) locale-builder.exe --locales '$(MINIMAL_LOCALES)'
  34. locale-data:
  35. if ! test -e CLDR/common/supplemental/supplementalData.xml ; then \
  36. curl http://www.unicode.org/Public/cldr/30.0.2/core.zip -o core.zip ; \
  37. unzip core.zip -d CLDR ; \
  38. fi
  39. install-culture-table: culture-info-tables.h
  40. cp -f culture-info-tables.h ../../mono/culture/.