forked from euske/nlcrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile
PYTHON=python
CMP=cmp
RSYNC=rsync -av
WORDNET_DIR=./WordNet-3.0
MKDICT=$(PYTHON) mkdict.py
NLCRYPT=$(PYTHON) nlcrypt.py
WEBAPP=$(PYTHON) app.py
DICTS=g2w.cdb w2g.cdb
PUBLIC_URL=tabesugi:public/cgi/root/host/nlcrypt.tabesugi.net/
all: $(DICTS)
clean:
-$(RM) *.cdb *.pyc
-$(RM) *.crypt *.out
$(DICTS): $(WORDNET_DIR) index.skip
$(MKDICT) -s index.skip $(WORDNET_DIR)/dict
test: $(DICTS)
$(NLCRYPT) abc sample.txt > sample.txt.crypt
$(NLCRYPT) -R abc sample.txt.crypt > sample.txt.out
$(CMP) sample.txt sample.txt.out
$(NLCRYPT) -C abc sample.txt > sample.txt.crypt
$(NLCRYPT) -C -R abc sample.txt.crypt > sample.txt.out
$(CMP) sample.txt sample.txt.out
runapp: $(DICTS)
$(WEBAPP) -s
update: $(DICTS)
$(RSYNC) app.py nlcrypt.py arcfour.py pycdb.py quotes.txt $(DICTS) $(PUBLIC_URL)