1- # type `make help` to see all options
1+ # type `make help` to see all options
2+ .DEFAULT_GOAL := help
23
34BASEURL ?=
45
89
910.PHONY : help prepare teams-clean teams serve clean
1011
11- # Add help text after each target name starting with '\#\#'
12- help : # # show this help
13- @echo " \nHelp for this makefile"
14- @echo " Possible commands are:"
15- @grep -h " ##" $(MAKEFILE_LIST ) | grep -v grep | sed -e ' s/\(.*\):.*##\(.*\)/ \1: \2/'
16-
1712prepare :
1813 git submodule update --init --recursive
1914 python gen_config.py
2015
16+ serve : # # serve the website at http://localhost:1313/
17+ serve : prepare
18+ hugo $(BASEURLARG ) --i18n-warnings server -D
19+
20+ html : # # build the static website in ./public
21+ html : prepare
22+ hugo $(BASEURLARG )
23+
24+ clean : # # remove build artifacts
25+ rm -rf public
26+
2127TEAMS_DIR = static/gallery
2228TEAMS = emeritus-maintainers maintainers triage-team survey-team web-team
2329TEAMS_QUERY = python themes/scientific-python-hugo-theme/tools/team_query.py
@@ -33,14 +39,10 @@ teams-clean: prepare
3339 rm -f $(TEAMS_DIR ) /$$ {team}.html ; \
3440 done
3541
36- teams : | teams-clean $(patsubst % ,$(TEAMS_DIR ) /% .md,$(TEAMS ) ) # # generates numpy.org team gallery pages
37-
38- serve : prepare # # serve the website
39- hugo $(BASEURLARG ) --i18n-warnings server -D
40-
41- html : prepare # # build the website in ./public
42- hugo $(BASEURLARG )
43-
44- clean : # # remove the build artifacts, mainly the "public" directory
45- rm -rf public
42+ teams : # # generate numpy.org team gallery pages
43+ teams : | teams-clean $(patsubst % ,$(TEAMS_DIR ) /% .md,$(TEAMS ) )
4644
45+ help : # # display this message
46+ @echo numpy.org make targets
47+ @echo ----------------------
48+ @python scripts/makefile_to_help.py Makefile
0 commit comments