Skip to content

Commit

Permalink
Run the autoload from the webapp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur committed Jun 23, 2024
1 parent 90893b3 commit 008b60d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export TOPDIR = $(shell pwd)

REC_TARGETS=build domserver install-domserver judgehost install-judgehost \
docs install-docs inplace-install inplace-uninstall maintainer-conf \
composer-dependencies composer-dependencies-dev
composer-dependencies composer-dependencies-dev \
composer-dump-autoload composer-dump-autoload-dev

# Global Makefile definitions
include $(TOPDIR)/Makefile.global
Expand Down Expand Up @@ -65,15 +66,6 @@ ifneq "$(JUDGEHOST_BUILD_ENABLED)" "yes"
@exit 1
endif

# Dump autoload dependencies (including plugins)
# This is needed since symfony/runtime is a Composer plugin that runs while dumping
# the autoload file
composer-dump-autoload:
composer $(subst 1,-q,$(QUIET)) dump-autoload -o -a

composer-dump-autoload-dev:
composer $(subst 1,-q,$(QUIET)) dump-autoload

# Generate documentation for distribution. Remove this dependency from
# dist above for quicker building from git sources.
distdocs:
Expand Down
9 changes: 9 additions & 0 deletions webapp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ maintainer-conf: .env.local
@echo "# the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
@echo "APP_ENV=dev" >> $@

# Dump autoload dependencies (including plugins)
# This is needed since symfony/runtime is a Composer plugin that runs while dumping
# the autoload file
composer-dump-autoload:
composer $(subst 1,-q,$(QUIET)) dump-autoload -o -a

composer-dump-autoload-dev:
composer $(subst 1,-q,$(QUIET)) dump-autoload

copy-bundle-assets:
# We can not use bin/console here, as when using a fakeroot,
# the include paths are broken. We just copy in the data we need
Expand Down

0 comments on commit 008b60d

Please sign in to comment.