default: test-keep-dups test-keep-uniques test-drs-dedup /bin/true .PHONY: test-keep-uniques test-keep-uniques: python3 -m mypy --strict keep-uniques readline0.py ./keep-uniques --help ! ./keep-uniques ./test-keep-uniques .PHONY: test-keep-dups test-keep-dups: python3 -m mypy --strict keep-dups readline0.py ./keep-dups --help ! ./keep-dups ./test-keep-dups .PHONY: test-drs-dedup test-drs-dedup: rm -rf fodder mkdir fodder rm -rf /tmp/work-dir mkdir /tmp/work-dir (cd corpus && tar cflS - .) | (cd fodder && tar xfp -) rm -rf fodder/.svn ! ./drs-dedup --work-dir /tmp/work-dir --input-dir fodder PATH="`pwd`:$$PATH" ./drs-dedup --work-dir /tmp/work-dir --input-dir fodder --report PATH="`pwd`:$$PATH" ./drs-dedup --work-dir /tmp/work-dir --input-dir fodder --hardlinks .PHONY: for-realsies for-realsies: PATH="$$PATH:`pwd`" ./drs-dedup --work-dir /mnt/backshift/files-dups --input-dir /mnt/backshift/save-directory/files install: ./install-file --file delete-dev-ino-insert-end-hashes --directory /usr/local/bin/. ./install-file --file delete-end-hashes-insert-full-hashes --directory /usr/local/bin/. ./install-file --file drs-dedup --directory /usr/local/bin/. ./install-file --file keep-dups --directory /usr/local/bin/. ./install-file --file keep-uniques --directory /usr/local/bin/. ./install-file --file process-dups --directory /usr/local/bin/. ./install-file --file readline0.py --directory /usr/local/bin/. clean: rm -rf fodder .mypy_cache rm -f ku-*.expected ku-*.actual kd-*.expected kd-*.actual