equal
deleted
inserted
replaced
31 .DEFAULT_GOAL = help |
31 .DEFAULT_GOAL = help |
32 |
32 |
33 ################################################################ |
33 ################################################################ |
34 # Build script definitions. |
34 # Build script definitions. |
35 |
35 |
36 BUILD_SCRIPT := $(firstword $(MAKEFILE_LIST)) |
36 BUILD_SCRIPTS := $(firstword $(MAKEFILE_LIST)) |
37 |
37 |
38 ifneq '' '$(wildcard Makefile.config)' |
38 ifneq '' '$(wildcard Makefile.config)' |
39 include Makefile.config |
39 include Makefile.config |
40 BUILD_SCRIPT += Makefile.config |
40 BUILD_SCRIPTS += Makefile.config |
41 endif |
41 endif |
42 |
42 |
43 ################################################################ |
43 ################################################################ |
44 # Version extracting/generation. |
44 # Version extracting/generation. |
45 |
45 |
273 # Documentation targets. |
273 # Documentation targets. |
274 |
274 |
275 .PHONY: html |
275 .PHONY: html |
276 html: $(HTML_FILES) |
276 html: $(HTML_FILES) |
277 |
277 |
278 $(HTML_FILES): %.html: %.rst rst.css VERSION.rst $(BUILD_SCRIPT) |
278 $(HTML_FILES): %.html: %.rst rst.css VERSION.rst $(BUILD_SCRIPTS) |
279 $(RST2HTML) $(RST2HTML_FLAGS) --stylesheet=rst.css $*.rst $@ |
279 $(RST2HTML) $(RST2HTML_FLAGS) --stylesheet=rst.css $*.rst $@ |
280 |
280 |
281 VERSION.rst: VERSION $(BUILD_SCRIPT) |
281 VERSION.rst: VERSION $(BUILD_SCRIPTS) |
282 { \ |
282 { \ |
283 echo 'For ``$(pkgname)`` version: ``$(vmajor).$(vminor)``.'; \ |
283 echo 'For ``$(pkgname)`` version: ``$(vmajor).$(vminor)``.'; \ |
284 echo; \ |
284 echo; \ |
285 case ${visclean} in \ |
285 case ${visclean} in \ |
286 yes) echo 'Source files are at revision: ``$(vrev)``.';; \ |
286 yes) echo 'Source files are at revision: ``$(vrev)``.';; \ |
313 fi |
313 fi |
314 @\ |
314 @\ |
315 echo; \ |
315 echo; \ |
316 echo Supported targets:; \ |
316 echo Supported targets:; \ |
317 echo; \ |
317 echo; \ |
318 sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*= \1=;p;}' $(BUILD_SCRIPT) |
318 sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*= \1=;p;}' $(BUILD_SCRIPTS) |
319 |
319 |
320 .PHONY: stat |
320 .PHONY: stat |
321 stat: STAT.rst |
321 stat: STAT.rst |
322 |
322 |
323 STAT.rst: $(C5_FILES) VERSION.rst $(BUILD_SCRIPT) |
323 STAT.rst: $(C5_FILES) VERSION.rst $(BUILD_SCRIPTS) |
324 { \ |
324 { \ |
325 echo '============================'; \ |
325 echo '============================'; \ |
326 echo ' gadict project statistics.'; \ |
326 echo ' gadict project statistics.'; \ |
327 echo '============================'; \ |
327 echo '============================'; \ |
328 echo '.. contents::'; \ |
328 echo '.. contents::'; \ |