~kirkland/bogosec/trunk

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
49
###########################################################
#
# Licensed Material - Property of IBM
#
# BogoSec - Source Code Security Quality Metric Calculator
#
# (C) Copyright IBM Corp. 2004-2008
#
# FILE   : Makefile
#
# PURPOSE: This makefile facilitates the installation and uninstallation 
#	   of BogoSec components
###########################################################

DESTDIR=$(prefix)

all:
	@echo
	@echo Nothing to be done... please use \'make install\' to install.
	@echo

install:
	@echo Installing bogosec...
	cp bogosec $(DESTDIR)/usr/bin/
	chmod a+rx $(DESTDIR)/usr/bin/bogosec
	cp bogosec_wrapper $(DESTDIR)/usr/bin/
	chmod a+rx $(DESTDIR)/usr/bin/bogosec_wrapper
	cp bogosec.conf $(DESTDIR)/etc/
	chmod a+r $(DESTDIR)/etc/bogosec.conf
	mkdir -p $(DESTDIR)/usr/lib/bogosec/plugins
	chmod -R a+r $(DESTDIR)/usr/lib/bogosec/
	cp plugins/*.pm $(DESTDIR)/usr/lib/bogosec/plugins/
	chmod a+r $(DESTDIR)/usr/lib/bogosec/plugins/*.pm
	cp man/bogosec.1 $(DESTDIR)/usr/share/man/man1/
	chmod a+r $(DESTDIR)/usr/share/man/man1/bogosec.1
	cp man/bogosec_wrapper.1 $(DESTDIR)/usr/share/man/man1/
	chmod a+r $(DESTDIR)/usr/share/man/man1/bogosec_wrapper.1
	@echo done!

uninstall:
	@echo Uninstalling bogosec...
	rm -f $(DESTDIR)/usr/bin/bogosec
	rm -f $(DESTDIR)/usr/bin/bogosec_wrapper
	rm -f $(DESTDIR)/etc/bogosec.conf
	rm -rf $(DESTDIR)/usr/lib/bogosec/
	rm $(DESTDIR)/usr/share/man/man1/bogosec_wrapper.1
	rm $(DESTDIR)/usr/share/man/man1/bogosec.1
	@echo done!