# This exists solely for the `make install' rule. prefix = /usr/local bindir = ${prefix}/bin VERSION = 0.1 all: chaffwin ELFILES = chaffwin.el SOURCES = chaffwin.pl chaffwin.c md5.c HEADERS = md5.h TEXTIES = README ChangeLog Makefile COPYING TO_DO DISTFILES = ${ELFILES} ${SOURCES} ${TEXTIES} # These are not part of chaffwin, they are what to clean up after `make test': TESTFILES = test.txt test.chaff test.winnow install: ${SOURCES} cp ${SOURCES} ${bindir} chmod a+x ${bindir}/${SOURCES} @echo @echo Done: chaffwin installed. @echo @echo If you want to use the Emacs interface, then @echo put chaffwin.el in a directory in your Emacs load-path, @echo and put \"\(load "chaffwin"\)\" in your .emacs. Functions @echo are chaffwin-chaff-region and chaffwin-winnow-region. @echo chaffwin: chaffwin.o md5.o gcc -g -o chaffwin chaffwin.o md5.o check: test test: ${SOURCES} @rm -f ${TESTFILES} @echo "This is the first line of the test file. E " >> test.txt @echo " This is the second line of the test file. E " >> test.txt @echo "This line has two backslashes \\ in \\ it." >> test.txt @echo " This is the fourth line of the test file. E " >> test.txt @echo " This is the fifth line of the test file. E " >> test.txt @echo "Goodbye!" >> test.txt @./chaffwin.pl -e -c 5 -p long_passphrase test.txt | tee test.chaff @echo "" @echo "Now comes the wheat:" @echo "" @./chaffwin.pl -d -p long_passphrase test.chaff | tee test.winnow @echo "" @echo "Compare original with decrypted (silence means success):" @echo "" @cmp test.txt test.winnow @rm ${TESTFILES} @# ./chaffwin.pl -e -p long_passphrase < test.txt > test.chaff @# ./chaffwin.pl -d -p long_passphrase < test.chaff > test.winnow @# cmp test.txt test.winnow @# rm ${TESTFILES} dist: ${DISTFILES} tar cvf chaffwin-${VERSION}.tar ${DISTFILES} gzip --best chaffwin-${VERSION}.tar clean: rm ${TESTFILES} chaffwin-${VERSION}.tar.gz *~