Skip to content

Commit 284e789

Browse files
Michael Vasseurvmcj
authored andcommitted
Simplify maintainer-conf target by traversing
In another commit we will move more targets there. Because of that we can put this target in the correct dir and simplify the reading process.
1 parent c509db2 commit 284e789

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
export TOPDIR = $(shell pwd)
66

77
REC_TARGETS=build domserver install-domserver judgehost install-judgehost \
8-
docs install-docs inplace-install inplace-uninstall
8+
docs install-docs inplace-install inplace-uninstall maintainer-conf
99

1010
# Global Makefile definitions
1111
include $(TOPDIR)/Makefile.global
@@ -107,6 +107,7 @@ judgehost: SUBDIRS=etc judge misc-tools
107107
install-judgehost: SUBDIRS=etc lib judge misc-tools
108108
docs: SUBDIRS= doc
109109
install-docs: SUBDIRS= doc
110+
maintainer-conf: SUBDIRS= webapp
110111
inplace-install: SUBDIRS= doc misc-tools
111112
inplace-uninstall: SUBDIRS= doc misc-tools
112113
dist: SUBDIRS= lib sql misc-tools
@@ -193,7 +194,7 @@ paths.mk:
193194
@exit 1
194195

195196
# Configure for running in source tree, not meant for normal use:
196-
maintainer-conf: inplace-conf-common composer-dependencies-dev webapp/.env.local
197+
maintainer-conf: inplace-conf-common composer-dependencies-dev
197198
inplace-conf: inplace-conf-common composer-dependencies
198199
inplace-conf-common: dist
199200
./configure $(subst 1,-q,$(QUIET)) --prefix=$(CURDIR) \
@@ -211,13 +212,6 @@ inplace-conf-common: dist
211212
--with-baseurl='http://localhost/domjudge/' \
212213
$(CONFIGURE_FLAGS)
213214

214-
# Run Symfony in dev mode (for maintainer-mode):
215-
webapp/.env.local:
216-
@echo "Creating file '$@'..."
217-
@echo "# This file was automatically created by 'make maintainer-conf' to run" > $@
218-
@echo "# the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
219-
@echo "APP_ENV=dev" >> $@
220-
221215
# Install the system in place: don't really copy stuff, but create
222216
# symlinks where necessary to let it work from the source tree.
223217
# This stuff is a hack!

webapp/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ include $(TOPDIR)/Makefile.global
99
# Subdirectories to recurse into for REC_TARGETS
1010
SUBDIRS = config
1111

12+
maintainer-conf: .env.local
13+
14+
# Run Symfony in dev mode (for maintainer-mode):
15+
.env.local:
16+
@echo "Creating file '$@'..."
17+
@echo "# This file was automatically created by 'make maintainer-conf' to run" > $@
18+
@echo "# the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
19+
@echo "APP_ENV=dev" >> $@
20+
1221
copy-bundle-assets:
1322
# We can not use bin/console here, as when using a fakeroot,
1423
# the include paths are broken. We just copy in the data we need

0 commit comments

Comments
 (0)