blob: 136ec54388feb70f76de2c4081b7f77228d704f5 (
plain)
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
40
41
42
43
44
45
46
47
48
|
prefix= ${DESTDIR}/usr
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share
docdir = ${prefix}/share/imcom/docs
mandir = ${prefix}/man
all:
find ./ -type f -exec chmod a-x '{}' ';'
chmod +x imcom CLI.py LogHandler.py AccountCreator.py
install: install-bin install-doc
install-bin: install-modules
install -d -m 0755 ${bindir}
install -m 0755 imcom ${bindir}
install-modules:
install -d -m 0755 ${datadir}/imcom
install -d -m 0755 ${datadir}/imcom/modules
install -m 0644 *.py ${datadir}/imcom
install -m 0644 modules/*.py ${datadir}/imcom/modules
install -m 0755 CLI.py LogHandler.py AccountCreator.py ${datadir}/imcom
install-doc:
install -d -m 0755 ${docdir}
install -d -m 0755 ${mandir}/man1
install -m 0755 docs/*.html ${docdir}
install -m 0755 CONTRIBUTORS LICENSE README README.autostatus TODO WHATSNEW ${docdir}
install -m 0755 docs/imcom.1 ${mandir}/man1/imcom.1
uninstall:
rm -rf ${docdir}
rm -rf ${datadir}/imcom
rm -f ${bindir}/imcom
rm -f ${mandir}/man1/imcom.1
clean:
rm -f config.status config.log config.cache *.pyc
distclean: clean
rm -rf CVS docs/CVS autom4te.cache
rm -f imcom Makefile
chmod a-x CLI.py LogHandler.py AccountCreator.py
rm -f *~ .#*
.PHONY: distclean clean unstall install all install-modules install-bin install-doc
|