@@ -11,14 +11,17 @@ SUBDIRS = config
11
11
12
12
domserver : composer-dump-autoload
13
13
14
- maintainer-conf : .env.local
14
+ # Install PHP dependencies
15
+ composer-dependencies :
16
+ ifeq (, $(shell command -v composer 2> /dev/null) )
17
+ $(error "'composer' command not found in $(PATH), install it via your package manager or https://getcomposer.org/download/")
18
+ endif
19
+ # We use --no-scripts here because at this point the autoload.php file is
20
+ # not generated yet, which is needed to run the post-install scripts.
21
+ composer $(subst 1,-q,$(QUIET)) install --prefer-dist -o -a --no-scripts --no-plugins
15
22
16
- # Run Symfony in dev mode (for maintainer-mode):
17
- .env.local :
18
- @echo " Creating file '$@ '..."
19
- @echo " # This file was automatically created by 'make maintainer-conf' to run" > $@
20
- @echo " # the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
21
- @echo " APP_ENV=dev" >> $@
23
+ composer-dependencies-dev :
24
+ composer $(subst 1,-q,$(QUIET ) ) install --prefer-dist --no-scripts --no-plugins
22
25
23
26
# Dump autoload dependencies (including plugins)
24
27
# This is needed since symfony/runtime is a Composer plugin that runs while dumping
@@ -33,6 +36,13 @@ vendor/autoload_runtime.php:
33
36
composer-dump-autoload-dev :
34
37
composer $(subst 1,-q,$(QUIET ) ) dump-autoload
35
38
39
+ # Run Symfony in dev mode (for maintainer-mode):
40
+ .env.local :
41
+ @echo " Creating file '$@ '..."
42
+ @echo " # This file was automatically created by 'make maintainer-conf' to run" > $@
43
+ @echo " # the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
44
+ @echo " APP_ENV=dev" >> $@
45
+
36
46
copy-bundle-assets :
37
47
# We can not use bin/console here, as when using a fakeroot,
38
48
# the include paths are broken. We just copy in the data we need
@@ -65,19 +75,9 @@ install-domserver:
65
75
done
66
76
$(INSTALL_DATA) -t $(DESTDIR)$(domserver_webappdir) phpunit.xml.dist .env
67
77
68
- maintainer-install : composer-dump-autoload-dev
69
-
70
- # Install PHP dependencies
71
- composer-dependencies :
72
- ifeq (, $(shell command -v composer 2> /dev/null) )
73
- $(error "'composer' command not found in $(PATH), install it via your package manager or https://getcomposer.org/download/")
74
- endif
75
- # We use --no-scripts here because at this point the autoload.php file is
76
- # not generated yet, which is needed to run the post-install scripts.
77
- composer $(subst 1,-q,$(QUIET)) install --prefer-dist -o -a --no-scripts --no-plugins
78
+ maintainer-conf : .env.local
78
79
79
- composer-dependencies-dev :
80
- composer $(subst 1,-q,$(QUIET ) ) install --prefer-dist --no-scripts --no-plugins
80
+ maintainer-install : composer-dump-autoload-dev
81
81
82
82
maintainer-clean-l :
83
83
-for d in cache log ; do \
0 commit comments