toolbox/update-all-config.pl: quiet means quiet
[girocco.git] / GNUmakefile
blob835b976781a3ebdc059c6f1500b8a1244da901ab
1 # The target 'all' will do some theoretical pre-processing. The target
2 # 'install' will put all the bits in their place according to Girocco::Config
3 # (see INSTALL for details). Set GIROCCO_CONFIG to a different value in order
4 # to install according to custom config.
6 confnm:=$(shell ! test -s config.sh || . ./config.sh; echo "$${GIROCCO_CONF:-Girocco::Config}.pm" | sed 's,::,/,g')
7 bindir:=$(shell ! test -s config.sh || . ./config.sh; . ./shlib.sh && test -n "$$cfg_git_bin" && echo $$(dirname "$$cfg_git_bin"))
8 ifeq ($(bindir),)
9 $(error $$Girocco::Config::git_bin is not set)
10 endif
12 all:: apache.conf lighttpd.conf
13 @"$(MAKE)" -C git.git --no-print-directory --silent NO_SUBDIR=: bindir="$(bindir)" gitweb
14 @"$(MAKE)" -C src --no-print-directory --silent
15 @if [ "$$LOGNAME" = root -a -n "$$SUDO_USER" -a "$$SUDO_USER" != root ]; then \
16 find -L apache.conf src git.git/gitweb -user root 2>/dev/null \
17 -exec chown "$$SUDO_USER:$$(id -gn "$$SUDO_USER")" '{}' +; \
20 install:: all
21 @./install.sh
23 clean::
24 rm -f apache.conf
25 @"$(MAKE)" -C src clean
26 @"$(MAKE)" -C docs clean
28 doc::
29 @"$(MAKE)" -C docs
31 apache.conf: apache.conf.in $(confnm)
32 ./make-apache-conf.sh
34 lighttpd.conf: lighttpd.conf.in $(confnm)
35 ./make-lighttpd-conf.sh
37 .PHONY: gnu_make_command_name
38 gnu_make_command_name:
39 @echo gnu_make_command_name=$(MAKE)