Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/gitweb/Makefile # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / gitweb / Makefile` 146 lines ยท 5357 bytes Raw Blame History 1 ifndef MAK_DIR_GITWEB 2 $(error do not run gitweb/Makefile stand-alone anymore. The "gitweb" and \ 3 "install-gitweb" targets now live in the top-level Makefile) 4 endif 5 6 # Define JSMIN to point to JavaScript minifier that functions as 7 # a filter to have static/gitweb.js minified. 8 # 9 # Define CSSMIN to point to a CSS minifier in order to generate a minified 10 # version of static/gitweb.css 11 # 12 13 # default configuration for gitweb 14 GITWEB_CONFIG = gitweb_config.perl 15 GITWEB_CONFIG_SYSTEM = /etc/gitweb.conf 16 GITWEB_CONFIG_COMMON = /etc/gitweb-common.conf 17 GITWEB_HOME_LINK_STR = projects 18 GITWEB_SITENAME = 19 GITWEB_PROJECTROOT = /pub/git 20 GITWEB_PROJECT_MAXDEPTH = 2007 21 GITWEB_EXPORT_OK = 22 GITWEB_STRICT_EXPORT = 23 GITWEB_BASE_URL = 24 GITWEB_LIST = 25 GITWEB_HOMETEXT = indextext.html 26 GITWEB_CSS_IN = static/gitweb.css 27 GITWEB_CSS = $(GITWEB_CSS_IN) 28 GITWEB_LOGO = static/git-logo.png 29 GITWEB_FAVICON = static/git-favicon.png 30 GITWEB_JS_IN = static/gitweb.js 31 GITWEB_JS = $(GITWEB_JS_IN) 32 GITWEB_SITE_HTML_HEAD_STRING = 33 GITWEB_SITE_HEADER = 34 GITWEB_SITE_FOOTER = 35 HIGHLIGHT_BIN = highlight 36 37 # What targets we'll add to 'all' for "make gitweb" 38 GITWEB_ALL = 39 GITWEB_ALL += gitweb.cgi 40 GITWEB_ALL += $(GITWEB_JS) 41 42 MAK_DIR_GITWEB_ALL = $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_ALL)) 43 44 GITWEB_PROGRAMS = gitweb.cgi 45 46 GITWEB_JS_MIN = static/gitweb.min.js 47 ifdef JSMIN 48 GITWEB_JS = $(GITWEB_JS_MIN) 49 GITWEB_ALL += $(MAK_DIR_GITWEB)$(GITWEB_JS_MIN) 50 $(MAK_DIR_GITWEB)$(GITWEB_JS_MIN): $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS 51 $(MAK_DIR_GITWEB)$(GITWEB_JS_MIN): $(MAK_DIR_GITWEB)$(GITWEB_JS_IN) 52 $(QUIET_GEN)$(JSMIN) <$< >$@ 53 endif 54 GITWEB_FILES += $(GITWEB_JS) 55 56 GITWEB_CSS_MIN = static/gitweb.min.css 57 ifdef CSSMIN 58 GITWEB_CSS = $(GITWEB_CSS_MIN) 59 GITWEB_ALL += $(MAK_DIR_GITWEB)$(GITWEB_CSS_MIN) 60 $(MAK_DIR_GITWEB)$(GITWEB_CSS_MIN): $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS 61 $(MAK_DIR_GITWEB)$(GITWEB_CSS_MIN): $(MAK_DIR_GITWEB)$(GITWEB_CSS_IN) 62 $(QUIET_GEN)$(CSSMIN) <$< >$@ 63 endif 64 GITWEB_FILES += $(GITWEB_CSS) 65 66 GITWEB_FILES += static/git-logo.png static/git-favicon.png 67 68 # JavaScript files that are composed (concatenated) to form gitweb.js 69 # 70 # js/lib/common-lib.js should be always first, then js/lib/*.js, 71 # then the rest of files; js/gitweb.js should be last (if it exists) 72 GITWEB_JSLIB_FILES = 73 GITWEB_JSLIB_FILES += static/js/lib/common-lib.js 74 GITWEB_JSLIB_FILES += static/js/lib/datetime.js 75 GITWEB_JSLIB_FILES += static/js/lib/cookies.js 76 GITWEB_JSLIB_FILES += static/js/javascript-detection.js 77 GITWEB_JSLIB_FILES += static/js/adjust-timezone.js 78 GITWEB_JSLIB_FILES += static/js/blame_incremental.js 79 80 .PHONY: FORCE 81 $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS: FORCE 82 @sed -e 's|@PERL_PATH@|$(PERL_PATH_SQ)|' \ 83 -e 's|@JSMIN@|$(JSMIN)|' \ 84 -e 's|@CSSMIN@|$(CSSMIN)|' \ 85 -e 's|@GIT_VERSION@|$(GIT_VERSION)|' \ 86 -e 's|@GIT_BINDIR@|$(bindir)|' \ 87 -e 's|@GITWEB_CONFIG@|$(GITWEB_CONFIG)|' \ 88 -e 's|@GITWEB_CONFIG_SYSTEM@|$(GITWEB_CONFIG_SYSTEM)|' \ 89 -e 's|@GITWEB_CONFIG_COMMON@|$(GITWEB_CONFIG_COMMON)|' \ 90 -e 's|@GITWEB_HOME_LINK_STR@|$(GITWEB_HOME_LINK_STR)|' \ 91 -e 's|@GITWEB_SITENAME@|$(GITWEB_SITENAME)|' \ 92 -e 's|@GITWEB_PROJECTROOT@|$(GITWEB_PROJECTROOT)|' \ 93 -e 's|@GITWEB_PROJECT_MAXDEPTH@|$(GITWEB_PROJECT_MAXDEPTH)|' \ 94 -e 's|@GITWEB_EXPORT_OK@|$(GITWEB_EXPORT_OK)|' \ 95 -e 's|@GITWEB_STRICT_EXPORT@|$(GITWEB_STRICT_EXPORT)|' \ 96 -e 's|@GITWEB_BASE_URL@|$(GITWEB_BASE_URL)|' \ 97 -e 's|@GITWEB_LIST@|$(GITWEB_LIST)|' \ 98 -e 's|@GITWEB_HOMETEXT@|$(GITWEB_HOMETEXT)|' \ 99 -e 's|@GITWEB_CSS@|$(GITWEB_CSS)|' \ 100 -e 's|@GITWEB_LOGO@|$(GITWEB_LOGO)|' \ 101 -e 's|@GITWEB_FAVICON@|$(GITWEB_FAVICON)|' \ 102 -e 's|@GITWEB_JS@|$(GITWEB_JS)|' \ 103 -e 's|@GITWEB_SITE_HTML_HEAD_STRING@|$(GITWEB_SITE_HTML_HEAD_STRING)|' \ 104 -e 's|@GITWEB_SITE_HEADER@|$(GITWEB_SITE_HEADER)|' \ 105 -e 's|@GITWEB_SITE_FOOTER@|$(GITWEB_SITE_FOOTER)|' \ 106 -e 's|@HIGHLIGHT_BIN@|$(HIGHLIGHT_BIN)|' \ 107 $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS.in >"$@+" 108 @cmp -s $@+ $@ && rm -f $@+ || mv -f $@+ $@ 109 110 $(MAK_DIR_GITWEB)gitweb.cgi: $(MAK_DIR_GITWEB)generate-gitweb-cgi.sh 111 $(MAK_DIR_GITWEB)gitweb.cgi: $(MAK_DIR_GITWEB)GITWEB-BUILD-OPTIONS 112 $(MAK_DIR_GITWEB)gitweb.cgi: GIT-VERSION-FILE 113 $(MAK_DIR_GITWEB)gitweb.cgi: $(MAK_DIR_GITWEB)gitweb.perl 114 $(QUIET_GEN)$(RM) $@ $@+ && \ 115 $(MAK_DIR_GITWEB)generate-gitweb-cgi.sh $(MAK_DIR_GITWEB)/GITWEB-BUILD-OPTIONS ./GIT-VERSION-FILE $< $@+ && \ 116 mv $@+ $@ 117 118 $(MAK_DIR_GITWEB)static/gitweb.js: $(MAK_DIR_GITWEB)generate-gitweb-js.sh 119 $(MAK_DIR_GITWEB)static/gitweb.js: $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_JSLIB_FILES)) 120 $(QUIET_GEN)$(RM) $@ $@+ && \ 121 $(MAK_DIR_GITWEB)generate-gitweb-js.sh $@+ $(filter %.js,$^) && \ 122 mv $@+ $@ 123 124 ### Installation rules 125 126 .PHONY: install-gitweb 127 install-gitweb: $(MAK_DIR_GITWEB_ALL) 128 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebdir_SQ)' 129 $(INSTALL) -m 755 $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_PROGRAMS)) '$(DESTDIR_SQ)$(gitwebdir_SQ)' 130 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)' 131 $(INSTALL) -m 644 $(addprefix $(MAK_DIR_GITWEB),$(GITWEB_FILES)) \ 132 '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)' 133 ifndef NO_GITWEB 134 ifndef NO_PERL 135 install: install-gitweb 136 endif 137 endif 138 139 ### Cleaning rules 140 141 .PHONY: gitweb-clean 142 gitweb-clean: 143 $(RM) $(addprefix $(MAK_DIR_GITWEB),gitweb.cgi $(GITWEB_JS_IN) \ 144 $(GITWEB_JS_MIN) $(GITWEB_CSS_MIN) \ 145 GITWEB-BUILD-OPTIONS) 146 clean: gitweb-clean