2018-04-03 21:22:18 +00:00
|
|
|
.PHONY: default
|
2018-04-05 01:01:43 +00:00
|
|
|
default: add-photos
|
2018-04-03 21:22:18 +00:00
|
|
|
|
|
|
|
virtualenv: virtualenv_run
|
|
|
|
|
|
|
|
virtualenv_run:
|
2021-03-08 20:36:02 +00:00
|
|
|
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
|
|
|
|
|
2018-04-05 01:01:43 +00:00
|
|
|
build/contacts/contacts/DOWNLOADED: build/vdirsyncer
|
2018-04-04 23:55:09 +00:00
|
|
|
./vdirsyncer-wrapper sync
|
2018-04-05 01:01:43 +00:00
|
|
|
touch build/contacts/contacts/DOWNLOADED
|
2018-04-04 23:55:09 +00:00
|
|
|
|
|
|
|
.PHONY: khard-list
|
2018-04-05 01:01:43 +00:00
|
|
|
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
|
2018-04-05 01:01:43 +00:00
|
|
|
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
|
2018-04-05 01:01:43 +00:00
|
|
|
|
|
|
|
.PHONY: clean-build
|
|
|
|
clean-build:
|
|
|
|
rm -fr build/
|
|
|
|
|
|
|
|
.PHONY: sync-contacts
|
|
|
|
sync-contacts: build/vdirsyncer
|
|
|
|
./vdirsyncer-wrapper sync
|