diff --git a/webapp/Makefile b/webapp/Makefile index 9b89571683..458b1526d1 100644 --- a/webapp/Makefile +++ b/webapp/Makefile @@ -43,20 +43,18 @@ composer-dump-autoload-dev: @echo "# the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@ @echo "APP_ENV=dev" >> $@ -copy-bundle-assets: +public/bundles/nelmioapidoc: # 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 - -rm -rf public/bundles/nelmioapidoc - mkdir -p public/bundles/nelmioapidoc - cp -a vendor/nelmio/api-doc-bundle/public/* public/bundles/nelmioapidoc/ + -rm -rf $@ + mkdir -p $@ + cp -a vendor/nelmio/api-doc-bundle/public/* $@ clean-l: -rm -rf public/bundles/nelmioapidoc -rm -f vendor/autoload_runtime.php -domserver-l: -# This must be done first to install with the rest. - $(MAKE) copy-bundle-assets +domserver-l: public/bundles/nelmioapidoc install-domserver: $(INSTALL_DIR) $(DESTDIR)$(domserver_webappdir); @@ -88,5 +86,4 @@ maintainer-clean-l: done ; \ done -.PHONY: composer-dump-autoload composer-dump-autoload-dev \ - copy-bundle-assets +.PHONY: composer-dump-autoload-dev