Provides automatic installation scripts for OpenRA with Tiberian Sun & Red Alert 2 + Dune 2 (Windows, Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.8 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -155,6 +155,15 @@
  4. PROGRAMS += mod_cnc
  5. mod_cnc: $(mod_cnc_TARGET)
  6. +# Red Alert 2
  7. +mod_ra2_SRCS := $(shell find OpenRA.Mods.RA2/ -iname '*.cs')
  8. +mod_ra2_TARGET = mods/ra2/OpenRA.Mods.RA2.dll
  9. +mod_ra2_KIND = library
  10. +mod_ra2_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET)
  11. +mod_ra2_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
  12. +PROGRAMS += mod_ra2
  13. +mod_ra2: $(mod_ra2_TARGET)
  14. +
  15. # Dune 2000
  16. mod_d2k_SRCS := $(shell find OpenRA.Mods.D2k/ -iname '*.cs')
  17. mod_d2k_TARGET = mods/d2k/OpenRA.Mods.D2k.dll
  18. @@ -164,6 +173,15 @@
  19. PROGRAMS += mod_d2k
  20. mod_d2k: $(mod_d2k_TARGET)
  21. +# Dune 2
  22. +mod_d2_SRCS := $(shell find OpenRA.Mods.D2/ -iname '*.cs')
  23. +mod_d2_TARGET = mods/d2/OpenRA.Mods.D2.dll
  24. +mod_d2_KIND = library
  25. +mod_d2_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET)
  26. +mod_d2_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
  27. +PROGRAMS += mod_d2
  28. +mod_d2: $(mod_d2_TARGET)
  29. +
  30. check-scripts:
  31. @echo
  32. @echo "Checking for Lua syntax errors..."
  33. @@ -193,6 +211,12 @@
  34. @echo "Checking for code style violations in OpenRA.Mods.D2k..."
  35. @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.D2k
  36. @echo
  37. + @echo "Checking for code style violations in OpenRA.Mods.D2..."
  38. + @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.D2
  39. + @echo
  40. + @echo "Checking for code style violations in OpenRA.Mods.RA2..."
  41. + @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.RA2
  42. + @echo
  43. @echo "Checking for code style violations in OpenRA.Utility..."
  44. @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Utility
  45. @echo
  46. @@ -226,9 +250,15 @@
  47. @echo "Testing Tiberian Sun mod MiniYAML..."
  48. @mono --debug OpenRA.Utility.exe ts --check-yaml
  49. @echo
  50. + @echo "Testing Red Alert 2 mod MiniYAML..."
  51. + @mono --debug OpenRA.Utility.exe ra2 --check-yaml
  52. + @echo
  53. @echo "Testing Dune 2000 mod MiniYAML..."
  54. @mono --debug OpenRA.Utility.exe d2k --check-yaml
  55. @echo
  56. + @echo "Testing Dune 2 mod MiniYAML..."
  57. + @mono --debug OpenRA.Utility.exe d2 --check-yaml
  58. + @echo
  59. @echo "Testing Tiberian Dawn mod MiniYAML..."
  60. @mono --debug OpenRA.Utility.exe cnc --check-yaml
  61. @echo
  62. @@ -301,7 +331,7 @@
  63. package: all-dependencies core tools docs version
  64. -mods: mod_common mod_cnc mod_d2k
  65. +mods: mod_common mod_cnc mod_d2k mod_ra2 mod_d2
  66. all: dependencies core tools
  67. @@ -368,6 +398,10 @@
  68. @$(CP_R) mods/cnc "$(DATA_INSTALL_DIR)/mods/"
  69. @$(CP_R) mods/ra "$(DATA_INSTALL_DIR)/mods/"
  70. @$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/"
  71. + @$(CP_R) mods/ra2 "$(DATA_INSTALL_DIR)/mods/"
  72. + @$(CP_R) mods/d2 "$(DATA_INSTALL_DIR)/mods/"
  73. + @$(INSTALL_PROGRAM) $(mod_ra2_TARGET) "$(DATA_INSTALL_DIR)/mods/ra2"
  74. + @$(INSTALL_PROGRAM) $(mod_d2_TARGET) "$(DATA_INSTALL_DIR)/mods/d2"
  75. @$(INSTALL_PROGRAM) $(mod_d2k_TARGET) "$(DATA_INSTALL_DIR)/mods/d2k"
  76. @$(CP_R) mods/modchooser "$(DATA_INSTALL_DIR)/mods/"