blob: 639324dd0da7bd0649dc87f54d69a8c68b22cd18 (
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
|
#---------------------------------------------------------------
# Project : Mandriva Linux
# Module : share
# File : Makefile
# Version : $Id$
# Author : Frederic Lepied
# Created On : Sat Jan 26 20:17:55 2002
#---------------------------------------------------------------
MAN=../man/C/mseclib.3
PFILES=Config.py ConfigFile.py Log.py Perms.py compile.py draksec_help.py libmsec.py man.py
all: mseclib.py compile man help.pm
compile:
./compile.py '/usr/share/msec/' *.py
rm -f msec.pyo
@for f in $(PFILES); do if grep -q print $$f; then echo "print statement in $$f:"; grep -Hn print $$f; exit 1; fi; done
mseclib.py: libmsec.py shadow.py
rm -f $@
./shadow.py libmsec > $@
man: $(MAN) levels
help.pm: libmsec.py draksec_help.py
rm -f $@
./draksec_help.py libmsec > $@
$(MAN): libmsec.py man.py
rm -f $@
./man.py libmsec > $@
levels:
for l in 0 1 2 3 4 5; do rm -f level.$$l; \
./msec.py -o log=stderr -o print=1 -o nolocal=1 $$l < /dev/null | sort > level.$$l; \
done
clean:
rm -f *.pyc *.pyo mseclib.py *~ level.[0-5] help.pm
# Local variables:
# mode: makefile
# End:
#
# Makefile ends here
|