usertool.pl: match recent key length updates
[girocco.git] / GNUmakefile
blobe22f414f7fba2aec672c28c6459fa9ec6fb8dce0
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 bindir:=$(shell . ./shlib.sh && test -n "$$cfg_git_bin" && echo $$(dirname "$$cfg_git_bin"))
7 ifeq ($(bindir),)
8 $(error $$Girocco::Config::git_bin is not set)
9 endif
11 all:: apache.conf
12 @"$(MAKE)" -C git.git --no-print-directory --silent NO_SUBDIR=: bindir="$(bindir)" gitweb
13 @"$(MAKE)" -C src --no-print-directory --silent
14 @if [ "$$LOGNAME" = root -a -n "$$SUDO_USER" -a "$$SUDO_USER" != root ]; then \
15 find -L apache.conf src git.git/gitweb -user root 2>/dev/null \
16 -exec chown "$$SUDO_USER:$$(id -gn "$$SUDO_USER")" '{}' +; \
19 install:: all
20 @./install.sh
22 clean::
23 rm -f apache.conf
24 @"$(MAKE)" -C src clean
25 @"$(MAKE)" -C docs clean
27 doc::
28 @"$(MAKE)" -C docs
30 apache.conf: apache.conf.in Girocco/Config.pm
31 ./make-apache-conf.sh
33 .PHONY: gnu_make_command_name
34 gnu_make_command_name:
35 @echo gnu_make_command_name=$(MAKE)