1
- # type `make help` to see all options
1
+ # type `make help` to see all options
2
+ .DEFAULT_GOAL := help
2
3
3
4
BASEURL ?=
4
5
8
9
9
10
.PHONY : help prepare teams-clean teams serve clean
10
11
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
-
17
12
prepare :
18
13
git submodule update --init --recursive
19
14
python gen_config.py
20
15
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
+
21
27
TEAMS_DIR = static/gallery
22
28
TEAMS = emeritus-maintainers maintainers triage-team survey-team web-team
23
29
TEAMS_QUERY = python themes/scientific-python-hugo-theme/tools/team_query.py
@@ -33,14 +39,10 @@ teams-clean: prepare
33
39
rm -f $(TEAMS_DIR ) /$$ {team}.html ; \
34
40
done
35
41
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 ) )
46
44
45
+ help : # # display this message
46
+ @echo numpy.org make targets
47
+ @echo ----------------------
48
+ @python scripts/makefile_to_help.py Makefile
0 commit comments