forked from USArmyResearchLab/Dshell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·39 lines (28 loc) · 866 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
37
38
39
default: all
all: rc dshell
dshell: rc initpy pydoc
rc:
# Generating .dshellrc and dshell files
python $(PWD)/bin/generate-dshellrc.py $(PWD)
chmod 755 $(PWD)/dshell
chmod 755 $(PWD)/dshell-decode
chmod 755 $(PWD)/bin/decode.py
ln -s $(PWD)/bin/decode.py $(PWD)/bin/decode
initpy:
find $(PWD)/decoders -type d -not -path \*.svn\* -print -exec touch {}/__init__.py \;
pydoc:
(cd $(PWD)/doc && ./generate-doc.sh $(PWD) )
clean: clean_pyc
distclean: clean clean_py clean_pydoc clean_rc
clean_rc:
rm -fv $(PWD)/dshell
rm -fv $(PWD)/dshell-decode
rm -fv $(PWD)/.dshellrc
rm -fv $(PWD)/bin/decode
clean_py:
find $(PWD)/decoders -name '__init__.py' -exec rm -v {} \;
clean_pyc:
find $(PWD)/decoders -name '*.pyc' -exec rm -v {} \;
find $(PWD)/lib -name '*.pyc' -exec rm -v {} \;
clean_pydoc:
find $(PWD)/doc -name '*.htm*' -exec rm -v {} \;