-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Makefile to the repo to allow easier local usage (#87)
- Loading branch information
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This Makefile supports incremental builds, please don't break that if you make any changes. | ||
|
||
# user-facing targets | ||
|
||
all: clone index | ||
|
||
clone: cleancache cache | ||
|
||
index: cache | ||
.venv/bin/python indexer.py repositories.yaml | ||
|
||
clean: cleancache | ||
-rm -rf clonerepos.sh .venv | ||
|
||
cleancache: | ||
-rm -rf cache | ||
|
||
# other targets | ||
|
||
clonerepos.sh: .venv repositories.yaml | ||
.venv/bin/python parser.py repositories.yaml clonerepos.sh | ||
|
||
cache: clonerepos.sh | ||
-rm -rf cache | ||
./clonerepos.sh | ||
|
||
.venv: | ||
python3 -m venv .venv | ||
.venv/bin/pip install pyyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters