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
1111
1212prepare :
1313 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
1616
1717CALENDAR_DIR = content/calendars
1818
@@ -22,16 +22,8 @@ $(CALENDAR_DIR):
2222$(CALENDAR_DIR ) /% .ics : calendars/% .yaml $(CALENDAR_DIR )
2323 yaml2ics $< > $@
2424
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 ) )
3527
3628TEAMS_DIR = static/teams
3729TEAMS = 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