Last active
August 29, 2015 14:02
-
-
Save jqtrde/6fb6cdf71a28fe51c727 to your computer and use it in GitHub Desktop.
How to get watchman and make to play together.
This file contains hidden or 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
id | longitude | latitude | name | |
---|---|---|---|---|
1 | -67.727002 | 44.949998 | One | |
2 | -68.056075 | 45.031446 | Two |
This file contains hidden or 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
from subprocess import call | |
def make(): | |
call(['make']) | |
if __name__ == '__main__': | |
make() |
This file contains hidden or 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
all: \ | |
i.geojson | |
# create geojson from csv | |
i.geojson: i.csv | |
csv2geojson $< > $@ | |
watch: | |
watchman watch $(shell pwd) | |
watchman -- trigger $(shell pwd) rebuild '*.csv' -- python $(shell pwd)/make.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment