|
5 | 5 | export TOPDIR = $(shell pwd)
|
6 | 6 |
|
7 | 7 | REC_TARGETS=build domserver install-domserver judgehost install-judgehost \
|
8 |
| - docs install-docs inplace-install inplace-uninstall maintainer-conf |
| 8 | + docs install-docs inplace-install inplace-uninstall maintainer-conf \ |
| 9 | + composer-dependencies composer-dependencies-dev |
9 | 10 |
|
10 | 11 | # Global Makefile definitions
|
11 | 12 | include $(TOPDIR)/Makefile.global
|
@@ -64,18 +65,6 @@ ifneq "$(JUDGEHOST_BUILD_ENABLED)" "yes"
|
64 | 65 | @exit 1
|
65 | 66 | endif
|
66 | 67 |
|
67 |
| -# Install PHP dependencies |
68 |
| -composer-dependencies: |
69 |
| -ifeq (, $(shell command -v composer 2> /dev/null)) |
70 |
| - $(error "'composer' command not found in $(PATH), install it via your package manager or https://getcomposer.org/download/") |
71 |
| -endif |
72 |
| -# We use --no-scripts here because at this point the autoload.php file is |
73 |
| -# not generated yet, which is needed to run the post-install scripts. |
74 |
| - composer $(subst 1,-q,$(QUIET)) install --prefer-dist -o -a --no-scripts --no-plugins |
75 |
| - |
76 |
| -composer-dependencies-dev: |
77 |
| - composer $(subst 1,-q,$(QUIET)) install --prefer-dist --no-scripts --no-plugins |
78 |
| - |
79 | 68 | # Dump autoload dependencies (including plugins)
|
80 | 69 | # This is needed since symfony/runtime is a Composer plugin that runs while dumping
|
81 | 70 | # the autoload file
|
@@ -114,6 +103,8 @@ dist: SUBDIRS= lib sql misc-tools
|
114 | 103 | clean: SUBDIRS=etc doc lib sql judge misc-tools webapp
|
115 | 104 | distclean: SUBDIRS=etc doc lib sql judge misc-tools webapp
|
116 | 105 | maintainer-clean: SUBDIRS=etc doc lib sql judge misc-tools webapp
|
| 106 | +composer-dependencies: SUBDIRS= webapp |
| 107 | +composer-dependencies-dev: SUBDIRS= webapp |
117 | 108 |
|
118 | 109 | domserver-create-dirs:
|
119 | 110 | $(INSTALL_DIR) $(addprefix $(DESTDIR),$(domserver_dirs))
|
|
0 commit comments