File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ help: ## show this help
11
11
12
12
prepare :
13
13
git submodule update --init
14
- pip install -r requirements.txt
15
- pre-commit install
14
+ (( python - c 'import yaml 2 ics' && pre - commit) > / dev / null 2 >& 1 ) || pip install - q - r requirements.txt
15
+ test -f .git/hooks/pre-commit || pre-commit install
16
16
17
17
CALENDAR_DIR = content/calendars
18
18
@@ -22,16 +22,8 @@ $(CALENDAR_DIR):
22
22
$(CALENDAR_DIR ) /% .ics : calendars/% .yaml $(CALENDAR_DIR )
23
23
yaml2ics $< > $@
24
24
25
- calendars : $(CALENDAR_DIR ) /numpy.ics
26
- calendars : $(CALENDAR_DIR ) /scipy.ics
27
- calendars : $(CALENDAR_DIR ) /matplotlib.ics
28
- calendars : $(CALENDAR_DIR ) /skimage.ics
29
- calendars : $(CALENDAR_DIR ) /networkx.ics
30
- calendars : $(CALENDAR_DIR ) /sunpy.ics
31
- calendars : $(CALENDAR_DIR ) /xarray.ics
32
- calendars : $(CALENDAR_DIR ) /contributor-experience.ics
33
- calendars : $(CALENDAR_DIR ) /sparse-array.ics
34
-
25
+ CALENDAR_SOURCES = $(wildcard calendars/* .yaml)
26
+ calendars : $(subst calendars,$(CALENDAR_DIR ) ,$(CALENDAR_SOURCES:.yaml=.ics ) )
35
27
36
28
TEAMS_DIR = static/teams
37
29
TEAMS = community-managers spec-steering-committee community-leaders emeritus-spec-steering-committee emeritus-community-leaders
You can’t perform that action at this time.
0 commit comments