Skip to content

Commit 008b60d

Browse files
author
Michael Vasseur
committed
Run the autoload from the webapp folder
1 parent 90893b3 commit 008b60d

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Makefile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export TOPDIR = $(shell pwd)
66

77
REC_TARGETS=build domserver install-domserver judgehost install-judgehost \
88
docs install-docs inplace-install inplace-uninstall maintainer-conf \
9-
composer-dependencies composer-dependencies-dev
9+
composer-dependencies composer-dependencies-dev \
10+
composer-dump-autoload composer-dump-autoload-dev
1011

1112
# Global Makefile definitions
1213
include $(TOPDIR)/Makefile.global
@@ -65,15 +66,6 @@ ifneq "$(JUDGEHOST_BUILD_ENABLED)" "yes"
6566
@exit 1
6667
endif
6768

68-
# Dump autoload dependencies (including plugins)
69-
# This is needed since symfony/runtime is a Composer plugin that runs while dumping
70-
# the autoload file
71-
composer-dump-autoload:
72-
composer $(subst 1,-q,$(QUIET)) dump-autoload -o -a
73-
74-
composer-dump-autoload-dev:
75-
composer $(subst 1,-q,$(QUIET)) dump-autoload
76-
7769
# Generate documentation for distribution. Remove this dependency from
7870
# dist above for quicker building from git sources.
7971
distdocs:

webapp/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ maintainer-conf: .env.local
1818
@echo "# the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
1919
@echo "APP_ENV=dev" >> $@
2020

21+
# Dump autoload dependencies (including plugins)
22+
# This is needed since symfony/runtime is a Composer plugin that runs while dumping
23+
# the autoload file
24+
composer-dump-autoload:
25+
composer $(subst 1,-q,$(QUIET)) dump-autoload -o -a
26+
27+
composer-dump-autoload-dev:
28+
composer $(subst 1,-q,$(QUIET)) dump-autoload
29+
2130
copy-bundle-assets:
2231
# We can not use bin/console here, as when using a fakeroot,
2332
# the include paths are broken. We just copy in the data we need

0 commit comments

Comments
 (0)