google-photo-to-vcard/Makefile

41 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

2018-04-03 21:22:18 +00:00
.PHONY: default
default: add-photos
2018-04-03 21:22:18 +00:00
virtualenv: virtualenv_run
virtualenv_run:
virtualenv --python python3.7 virtualenv_run
2018-04-03 21:22:18 +00:00
./virtualenv_run/bin/pip install -r ./requirements.txt
2018-04-04 23:55:09 +00:00
build/email_to_photo.json: virtualenv_run
mkdir -p build
./virtualenv_run/bin/python -m google_photo_to_vcard.build_photo_json
build/vdirsyncer: virtualenv_run
./vdirsyncer-wrapper discover
build/contacts/contacts/DOWNLOADED: build/vdirsyncer
2018-04-04 23:55:09 +00:00
./vdirsyncer-wrapper sync
touch build/contacts/contacts/DOWNLOADED
2018-04-04 23:55:09 +00:00
.PHONY: khard-list
khard-list: build/contacts/contacts/DOWNLOADED
2018-04-04 23:55:09 +00:00
./khard-wrapper list
build/photos/DONE: build/email_to_photo.json
./virtualenv_run/bin/python -m google_photo_to_vcard.download_photos
touch build/photos/DONE
.PHONY: add-photos
add-photos: virtualenv_run build/email_to_photo.json build/contacts/contacts/DOWNLOADED
2018-04-04 23:55:09 +00:00
mkdir -p build/photos
./virtualenv_run/bin/python -m google_photo_to_vcard.add_photo
.PHONY: clean-build
clean-build:
rm -fr build/
.PHONY: sync-contacts
sync-contacts: build/vdirsyncer
./vdirsyncer-wrapper sync