mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ab/build-gitweb'
Teach "make all" to build gitweb as well.
* ab/build-gitweb:
gitweb/Makefile: add a "NO_GITWEB" parameter
Makefile: build 'gitweb' in the default target
gitweb/Makefile: include in top-level Makefile
gitweb: remove "test" and "test-installed" targets
gitweb/Makefile: prepare to merge into top-level Makefile
gitweb/Makefile: clear up and de-duplicate the gitweb.{css,js} vars
gitweb/Makefile: add a $(GITWEB_ALL) variable
gitweb/Makefile: define all .PHONY prerequisites inline
This commit is contained in:
31
Makefile
31
Makefile
@@ -309,6 +309,11 @@ include shared.mak
|
|||||||
# distributions that want to use their packaged versions of Perl
|
# distributions that want to use their packaged versions of Perl
|
||||||
# modules, instead of the fallbacks shipped with Git.
|
# modules, instead of the fallbacks shipped with Git.
|
||||||
#
|
#
|
||||||
|
# Define NO_GITWEB if you do not want to build or install
|
||||||
|
# 'gitweb'. Note that defining NO_PERL currently has the same effect
|
||||||
|
# on not installing gitweb, but not on whether it's built in the
|
||||||
|
# gitweb/ directory.
|
||||||
|
#
|
||||||
# Define PYTHON_PATH to the path of your Python binary (often /usr/bin/python
|
# Define PYTHON_PATH to the path of your Python binary (often /usr/bin/python
|
||||||
# but /usr/bin/python2.7 or /usr/bin/python3 on some platforms).
|
# but /usr/bin/python2.7 or /usr/bin/python3 on some platforms).
|
||||||
#
|
#
|
||||||
@@ -544,6 +549,7 @@ gitexecdir = libexec/git-core
|
|||||||
mergetoolsdir = $(gitexecdir)/mergetools
|
mergetoolsdir = $(gitexecdir)/mergetools
|
||||||
sharedir = $(prefix)/share
|
sharedir = $(prefix)/share
|
||||||
gitwebdir = $(sharedir)/gitweb
|
gitwebdir = $(sharedir)/gitweb
|
||||||
|
gitwebstaticdir = $(gitwebdir)/static
|
||||||
perllibdir = $(sharedir)/perl5
|
perllibdir = $(sharedir)/perl5
|
||||||
localedir = $(sharedir)/locale
|
localedir = $(sharedir)/locale
|
||||||
template_dir = share/git-core/templates
|
template_dir = share/git-core/templates
|
||||||
@@ -562,7 +568,7 @@ localedir_relative = $(patsubst $(prefix)/%,%,$(localedir))
|
|||||||
htmldir_relative = $(patsubst $(prefix)/%,%,$(htmldir))
|
htmldir_relative = $(patsubst $(prefix)/%,%,$(htmldir))
|
||||||
perllibdir_relative = $(patsubst $(prefix)/%,%,$(perllibdir))
|
perllibdir_relative = $(patsubst $(prefix)/%,%,$(perllibdir))
|
||||||
|
|
||||||
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
|
export prefix bindir sharedir sysconfdir perllibdir localedir
|
||||||
|
|
||||||
# Set our default programs
|
# Set our default programs
|
||||||
CC = cc
|
CC = cc
|
||||||
@@ -2089,6 +2095,7 @@ htmldir_relative_SQ = $(subst ','\'',$(htmldir_relative))
|
|||||||
prefix_SQ = $(subst ','\'',$(prefix))
|
prefix_SQ = $(subst ','\'',$(prefix))
|
||||||
perllibdir_relative_SQ = $(subst ','\'',$(perllibdir_relative))
|
perllibdir_relative_SQ = $(subst ','\'',$(perllibdir_relative))
|
||||||
gitwebdir_SQ = $(subst ','\'',$(gitwebdir))
|
gitwebdir_SQ = $(subst ','\'',$(gitwebdir))
|
||||||
|
gitwebstaticdir_SQ = $(subst ','\'',$(gitwebstaticdir))
|
||||||
|
|
||||||
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
||||||
TEST_SHELL_PATH_SQ = $(subst ','\'',$(TEST_SHELL_PATH))
|
TEST_SHELL_PATH_SQ = $(subst ','\'',$(TEST_SHELL_PATH))
|
||||||
@@ -2417,10 +2424,6 @@ GIT-PERL-HEADER: $(PERL_HEADER_TEMPLATE) GIT-PERL-DEFINES Makefile
|
|||||||
perllibdir:
|
perllibdir:
|
||||||
@echo '$(perllibdir_SQ)'
|
@echo '$(perllibdir_SQ)'
|
||||||
|
|
||||||
.PHONY: gitweb
|
|
||||||
gitweb:
|
|
||||||
$(QUIET_SUBDIR0)gitweb $(QUIET_SUBDIR1) all
|
|
||||||
|
|
||||||
git-instaweb: git-instaweb.sh GIT-SCRIPT-DEFINES
|
git-instaweb: git-instaweb.sh GIT-SCRIPT-DEFINES
|
||||||
$(QUIET_GEN)$(cmd_munge_script) && \
|
$(QUIET_GEN)$(cmd_munge_script) && \
|
||||||
chmod +x $@+ && \
|
chmod +x $@+ && \
|
||||||
@@ -3149,6 +3152,18 @@ coccicheck-pending: $(addsuffix .patch,$(wildcard contrib/coccinelle/*.pending.c
|
|||||||
|
|
||||||
.PHONY: coccicheck coccicheck-pending
|
.PHONY: coccicheck coccicheck-pending
|
||||||
|
|
||||||
|
# "Sub"-Makefiles, not really because they can't be run stand-alone,
|
||||||
|
# only there to contain directory-specific rules and variables
|
||||||
|
## gitweb/Makefile inclusion:
|
||||||
|
MAK_DIR_GITWEB = gitweb/
|
||||||
|
include gitweb/Makefile
|
||||||
|
|
||||||
|
.PHONY: gitweb
|
||||||
|
gitweb: $(MAK_DIR_GITWEB_ALL)
|
||||||
|
ifndef NO_GITWEB
|
||||||
|
all:: gitweb
|
||||||
|
endif
|
||||||
|
|
||||||
### Installation rules
|
### Installation rules
|
||||||
|
|
||||||
ifneq ($(filter /%,$(firstword $(template_dir))),)
|
ifneq ($(filter /%,$(firstword $(template_dir))),)
|
||||||
@@ -3221,7 +3236,6 @@ ifndef NO_PERL
|
|||||||
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perllibdir_SQ)'
|
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perllibdir_SQ)'
|
||||||
(cd perl/build/lib && $(TAR) cf - .) | \
|
(cd perl/build/lib && $(TAR) cf - .) | \
|
||||||
(cd '$(DESTDIR_SQ)$(perllibdir_SQ)' && umask 022 && $(TAR) xof -)
|
(cd '$(DESTDIR_SQ)$(perllibdir_SQ)' && umask 022 && $(TAR) xof -)
|
||||||
$(MAKE) -C gitweb install
|
|
||||||
endif
|
endif
|
||||||
ifndef NO_TCLTK
|
ifndef NO_TCLTK
|
||||||
$(MAKE) -C gitk-git install
|
$(MAKE) -C gitk-git install
|
||||||
@@ -3276,10 +3290,8 @@ endif
|
|||||||
cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; } \
|
cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; } \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: install-gitweb install-doc install-man install-man-perl install-html install-info install-pdf
|
.PHONY: install-doc install-man install-man-perl install-html install-info install-pdf
|
||||||
.PHONY: quick-install-doc quick-install-man quick-install-html
|
.PHONY: quick-install-doc quick-install-man quick-install-html
|
||||||
install-gitweb:
|
|
||||||
$(MAKE) -C gitweb install
|
|
||||||
|
|
||||||
install-doc: install-man-perl
|
install-doc: install-man-perl
|
||||||
$(MAKE) -C Documentation install
|
$(MAKE) -C Documentation install
|
||||||
@@ -3425,7 +3437,6 @@ clean: profile-clean coverage-clean cocciclean
|
|||||||
$(MAKE) -C Documentation/ clean
|
$(MAKE) -C Documentation/ clean
|
||||||
$(RM) Documentation/GIT-EXCLUDED-PROGRAMS
|
$(RM) Documentation/GIT-EXCLUDED-PROGRAMS
|
||||||
ifndef NO_PERL
|
ifndef NO_PERL
|
||||||
$(MAKE) -C gitweb clean
|
|
||||||
$(RM) -r perl/build/
|
$(RM) -r perl/build/
|
||||||
endif
|
endif
|
||||||
$(MAKE) -C templates/ clean
|
$(MAKE) -C templates/ clean
|
||||||
|
|||||||
145
gitweb/Makefile
145
gitweb/Makefile
@@ -1,8 +1,8 @@
|
|||||||
# The default target of this Makefile is...
|
ifndef MAK_DIR_GITWEB
|
||||||
all::
|
$(error do not run gitweb/Makefile stand-alone anymore. The "gitweb" and \
|
||||||
|
"install-gitweb" targets now live in the top-level Makefile)
|
||||||
|
endif
|
||||||
|
|
||||||
# Define V=1 to have a more verbose compile.
|
|
||||||
#
|
|
||||||
# Define JSMIN to point to JavaScript minifier that functions as
|
# Define JSMIN to point to JavaScript minifier that functions as
|
||||||
# a filter to have static/gitweb.js minified.
|
# a filter to have static/gitweb.js minified.
|
||||||
#
|
#
|
||||||
@@ -10,13 +10,6 @@ all::
|
|||||||
# version of static/gitweb.css
|
# version of static/gitweb.css
|
||||||
#
|
#
|
||||||
|
|
||||||
prefix ?= $(HOME)
|
|
||||||
bindir ?= $(prefix)/bin
|
|
||||||
gitwebdir ?= /var/www/cgi-bin
|
|
||||||
|
|
||||||
RM ?= rm -f
|
|
||||||
INSTALL ?= install
|
|
||||||
|
|
||||||
# default configuration for gitweb
|
# default configuration for gitweb
|
||||||
GITWEB_CONFIG = gitweb_config.perl
|
GITWEB_CONFIG = gitweb_config.perl
|
||||||
GITWEB_CONFIG_SYSTEM = /etc/gitweb.conf
|
GITWEB_CONFIG_SYSTEM = /etc/gitweb.conf
|
||||||
@@ -30,89 +23,45 @@ GITWEB_STRICT_EXPORT =
|
|||||||
GITWEB_BASE_URL =
|
GITWEB_BASE_URL =
|
||||||
GITWEB_LIST =
|
GITWEB_LIST =
|
||||||
GITWEB_HOMETEXT = indextext.html
|
GITWEB_HOMETEXT = indextext.html
|
||||||
GITWEB_CSS = static/gitweb.css
|
GITWEB_CSS_IN = static/gitweb.css
|
||||||
|
GITWEB_CSS = $(GITWEB_CSS_IN)
|
||||||
GITWEB_LOGO = static/git-logo.png
|
GITWEB_LOGO = static/git-logo.png
|
||||||
GITWEB_FAVICON = static/git-favicon.png
|
GITWEB_FAVICON = static/git-favicon.png
|
||||||
GITWEB_JS = static/gitweb.js
|
GITWEB_JS_IN = static/gitweb.js
|
||||||
|
GITWEB_JS = $(GITWEB_JS_IN)
|
||||||
GITWEB_SITE_HTML_HEAD_STRING =
|
GITWEB_SITE_HTML_HEAD_STRING =
|
||||||
GITWEB_SITE_HEADER =
|
GITWEB_SITE_HEADER =
|
||||||
GITWEB_SITE_FOOTER =
|
GITWEB_SITE_FOOTER =
|
||||||
HIGHLIGHT_BIN = highlight
|
HIGHLIGHT_BIN = highlight
|
||||||
|
|
||||||
# include user config
|
# What targets we'll add to 'all' for "make gitweb"
|
||||||
-include ../config.mak.autogen
|
GITWEB_ALL =
|
||||||
-include ../config.mak
|
GITWEB_ALL += gitweb.cgi
|
||||||
-include config.mak
|
GITWEB_ALL += $(GITWEB_JS)
|
||||||
|
|
||||||
# determine version
|
MAK_DIR_GITWEB_ALL = $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_ALL))
|
||||||
../GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
|
|
||||||
$(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE
|
|
||||||
|
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
|
||||||
-include ../GIT-VERSION-FILE
|
|
||||||
endif
|
|
||||||
|
|
||||||
### Build rules
|
|
||||||
|
|
||||||
SHELL_PATH ?= $(SHELL)
|
|
||||||
PERL_PATH ?= /usr/bin/perl
|
|
||||||
|
|
||||||
# Shell quote;
|
|
||||||
bindir_SQ = $(subst ','\'',$(bindir))#'
|
|
||||||
gitwebdir_SQ = $(subst ','\'',$(gitwebdir))#'
|
|
||||||
gitwebstaticdir_SQ = $(subst ','\'',$(gitwebdir)/static)#'
|
|
||||||
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))#'
|
|
||||||
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))#'
|
|
||||||
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))#'
|
|
||||||
|
|
||||||
# Quiet generation (unless V=1)
|
|
||||||
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
|
|
||||||
QUIET_SUBDIR1 =
|
|
||||||
|
|
||||||
ifneq ($(findstring $(MAKEFLAGS),w),w)
|
|
||||||
PRINT_DIR = --no-print-directory
|
|
||||||
else # "make -w"
|
|
||||||
NO_SUBDIR = :
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(findstring $(MAKEFLAGS),s),s)
|
|
||||||
ifndef V
|
|
||||||
QUIET = @
|
|
||||||
QUIET_GEN = $(QUIET)echo ' ' GEN $@;
|
|
||||||
QUIET_SUBDIR0 = +@subdir=
|
|
||||||
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
|
|
||||||
$(MAKE) $(PRINT_DIR) -C $$subdir
|
|
||||||
export V
|
|
||||||
export QUIET
|
|
||||||
export QUIET_GEN
|
|
||||||
export QUIET_SUBDIR0
|
|
||||||
export QUIET_SUBDIR1
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
all:: gitweb.cgi static/gitweb.js
|
|
||||||
|
|
||||||
GITWEB_PROGRAMS = gitweb.cgi
|
GITWEB_PROGRAMS = gitweb.cgi
|
||||||
|
|
||||||
|
GITWEB_JS_MIN = static/gitweb.min.js
|
||||||
ifdef JSMIN
|
ifdef JSMIN
|
||||||
GITWEB_FILES += static/gitweb.min.js
|
GITWEB_JS = $(GITWEB_JS_MIN)
|
||||||
GITWEB_JS = static/gitweb.min.js
|
GITWEB_ALL += $(MAK_DIR_GITWEB)$(GITWEB_JS_MIN)
|
||||||
all:: static/gitweb.min.js
|
$(MAK_DIR_GITWEB)$(GITWEB_JS_MIN): $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS
|
||||||
static/gitweb.min.js: static/gitweb.js GITWEB-BUILD-OPTIONS
|
$(MAK_DIR_GITWEB)$(GITWEB_JS_MIN): $(MAK_DIR_GITWEB)$(GITWEB_JS_IN)
|
||||||
$(QUIET_GEN)$(JSMIN) <$< >$@
|
$(QUIET_GEN)$(JSMIN) <$< >$@
|
||||||
else
|
|
||||||
GITWEB_FILES += static/gitweb.js
|
|
||||||
endif
|
endif
|
||||||
|
GITWEB_FILES += $(GITWEB_JS)
|
||||||
|
|
||||||
|
GITWEB_CSS_MIN = static/gitweb.min.css
|
||||||
ifdef CSSMIN
|
ifdef CSSMIN
|
||||||
GITWEB_FILES += static/gitweb.min.css
|
GITWEB_CSS = $(GITWEB_CSS_MIN)
|
||||||
GITWEB_CSS = static/gitweb.min.css
|
GITWEB_ALL += $(MAK_DIR_GITWEB)$(GITWEB_CSS_MIN)
|
||||||
all:: static/gitweb.min.css
|
$(MAK_DIR_GITWEB)$(GITWEB_CSS_MIN): $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS
|
||||||
static/gitweb.min.css: static/gitweb.css GITWEB-BUILD-OPTIONS
|
$(MAK_DIR_GITWEB)$(GITWEB_CSS_MIN): $(MAK_DIR_GITWEB)$(GITWEB_CSS_IN)
|
||||||
$(QUIET_GEN)$(CSSMIN) <$< >$@
|
$(QUIET_GEN)$(CSSMIN) <$< >$@
|
||||||
else
|
|
||||||
GITWEB_FILES += static/gitweb.css
|
|
||||||
endif
|
endif
|
||||||
|
GITWEB_FILES += $(GITWEB_CSS)
|
||||||
|
|
||||||
GITWEB_FILES += static/git-logo.png static/git-favicon.png
|
GITWEB_FILES += static/git-logo.png static/git-favicon.png
|
||||||
|
|
||||||
@@ -120,6 +69,7 @@ GITWEB_FILES += static/git-logo.png static/git-favicon.png
|
|||||||
#
|
#
|
||||||
# js/lib/common-lib.js should be always first, then js/lib/*.js,
|
# js/lib/common-lib.js should be always first, then js/lib/*.js,
|
||||||
# then the rest of files; js/gitweb.js should be last (if it exists)
|
# then the rest of files; js/gitweb.js should be last (if it exists)
|
||||||
|
GITWEB_JSLIB_FILES =
|
||||||
GITWEB_JSLIB_FILES += static/js/lib/common-lib.js
|
GITWEB_JSLIB_FILES += static/js/lib/common-lib.js
|
||||||
GITWEB_JSLIB_FILES += static/js/lib/datetime.js
|
GITWEB_JSLIB_FILES += static/js/lib/datetime.js
|
||||||
GITWEB_JSLIB_FILES += static/js/lib/cookies.js
|
GITWEB_JSLIB_FILES += static/js/lib/cookies.js
|
||||||
@@ -152,46 +102,45 @@ GITWEB_REPLACE = \
|
|||||||
-e 's|++GITWEB_SITE_FOOTER++|$(GITWEB_SITE_FOOTER)|g' \
|
-e 's|++GITWEB_SITE_FOOTER++|$(GITWEB_SITE_FOOTER)|g' \
|
||||||
-e 's|++HIGHLIGHT_BIN++|$(HIGHLIGHT_BIN)|g'
|
-e 's|++HIGHLIGHT_BIN++|$(HIGHLIGHT_BIN)|g'
|
||||||
|
|
||||||
GITWEB-BUILD-OPTIONS: FORCE
|
.PHONY: FORCE
|
||||||
|
$(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS: FORCE
|
||||||
@rm -f $@+
|
@rm -f $@+
|
||||||
@echo "x" '$(PERL_PATH_SQ)' $(GITWEB_REPLACE) "$(JSMIN)|$(CSSMIN)" >$@+
|
@echo "x" '$(PERL_PATH_SQ)' $(GITWEB_REPLACE) "$(JSMIN)|$(CSSMIN)" >$@+
|
||||||
@cmp -s $@+ $@ && rm -f $@+ || mv -f $@+ $@
|
@cmp -s $@+ $@ && rm -f $@+ || mv -f $@+ $@
|
||||||
|
|
||||||
gitweb.cgi: gitweb.perl GITWEB-BUILD-OPTIONS
|
$(MAK_DIR_GITWEB)gitweb.cgi: $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS
|
||||||
|
$(MAK_DIR_GITWEB)gitweb.cgi: $(MAK_DIR_GITWEB)gitweb.perl
|
||||||
$(QUIET_GEN)$(RM) $@ $@+ && \
|
$(QUIET_GEN)$(RM) $@ $@+ && \
|
||||||
sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|' \
|
sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|' \
|
||||||
$(GITWEB_REPLACE) $< >$@+ && \
|
$(GITWEB_REPLACE) $< >$@+ && \
|
||||||
chmod +x $@+ && \
|
chmod +x $@+ && \
|
||||||
mv $@+ $@
|
mv $@+ $@
|
||||||
|
|
||||||
static/gitweb.js: $(GITWEB_JSLIB_FILES)
|
$(MAK_DIR_GITWEB)static/gitweb.js: $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_JSLIB_FILES))
|
||||||
$(QUIET_GEN)$(RM) $@ $@+ && \
|
$(QUIET_GEN)$(RM) $@ $@+ && \
|
||||||
cat $^ >$@+ && \
|
cat $^ >$@+ && \
|
||||||
mv $@+ $@
|
mv $@+ $@
|
||||||
|
|
||||||
### Testing rules
|
|
||||||
|
|
||||||
test:
|
|
||||||
$(MAKE) -C ../t gitweb-test
|
|
||||||
|
|
||||||
test-installed:
|
|
||||||
GITWEB_TEST_INSTALLED='$(DESTDIR_SQ)$(gitwebdir_SQ)' \
|
|
||||||
$(MAKE) -C ../t gitweb-test
|
|
||||||
|
|
||||||
### Installation rules
|
### Installation rules
|
||||||
|
|
||||||
install: all
|
.PHONY: install-gitweb
|
||||||
|
install-gitweb: $(MAK_DIR_GITWEB_ALL)
|
||||||
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebdir_SQ)'
|
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebdir_SQ)'
|
||||||
$(INSTALL) -m 755 $(GITWEB_PROGRAMS) '$(DESTDIR_SQ)$(gitwebdir_SQ)'
|
$(INSTALL) -m 755 $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_PROGRAMS)) '$(DESTDIR_SQ)$(gitwebdir_SQ)'
|
||||||
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)'
|
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)'
|
||||||
$(INSTALL) -m 644 $(GITWEB_FILES) '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)'
|
$(INSTALL) -m 644 $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_FILES)) \
|
||||||
|
'$(DESTDIR_SQ)$(gitwebstaticdir_SQ)'
|
||||||
|
ifndef NO_GITWEB
|
||||||
|
ifndef NO_PERL
|
||||||
|
install: install-gitweb
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
### Cleaning rules
|
### Cleaning rules
|
||||||
|
|
||||||
clean:
|
.PHONY: gitweb-clean
|
||||||
$(RM) gitweb.cgi static/gitweb.js \
|
gitweb-clean:
|
||||||
static/gitweb.min.js static/gitweb.min.css \
|
$(RM) $(addprefix $(MAK_DIR_GITWEB),gitweb.cgi $(GITWEB_JS_IN) \
|
||||||
GITWEB-BUILD-OPTIONS
|
$(GITWEB_JS_MIN) $(GITWEB_CSS_MIN) \
|
||||||
|
GITWEB-BUILD-OPTIONS)
|
||||||
.PHONY: all clean install test test-installed .FORCE-GIT-VERSION-FILE FORCE
|
clean: gitweb-clean
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ TEST_RESULTS_DIRECTORY_SQ = $(subst ','\'',$(TEST_RESULTS_DIRECTORY))
|
|||||||
CHAINLINTTMP_SQ = $(subst ','\'',$(CHAINLINTTMP))
|
CHAINLINTTMP_SQ = $(subst ','\'',$(CHAINLINTTMP))
|
||||||
|
|
||||||
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
|
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
|
||||||
TGITWEB = $(sort $(wildcard t95[0-9][0-9]-*.sh))
|
|
||||||
THELPERS = $(sort $(filter-out $(T),$(wildcard *.sh)))
|
THELPERS = $(sort $(filter-out $(T),$(wildcard *.sh)))
|
||||||
TPERF = $(sort $(wildcard perf/p[0-9][0-9][0-9][0-9]-*.sh))
|
TPERF = $(sort $(wildcard perf/p[0-9][0-9][0-9][0-9]-*.sh))
|
||||||
CHAINLINTTESTS = $(sort $(patsubst chainlint/%.test,%,$(wildcard chainlint/*.test)))
|
CHAINLINTTESTS = $(sort $(patsubst chainlint/%.test,%,$(wildcard chainlint/*.test)))
|
||||||
@@ -112,9 +111,6 @@ aggregate-results:
|
|||||||
echo "$$f"; \
|
echo "$$f"; \
|
||||||
done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
|
done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
|
||||||
|
|
||||||
gitweb-test:
|
|
||||||
$(MAKE) $(TGITWEB)
|
|
||||||
|
|
||||||
valgrind:
|
valgrind:
|
||||||
$(MAKE) GIT_TEST_OPTS="$(GIT_TEST_OPTS) --valgrind"
|
$(MAKE) GIT_TEST_OPTS="$(GIT_TEST_OPTS) --valgrind"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user