File: Makefile

package info (click to toggle)
nessus-plugins 2.2.8-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 15,508 kB
  • ctags: 251
  • sloc: sh: 8,346; ansic: 4,452; pascal: 3,089; perl: 704; makefile: 172; php: 1
file content (71 lines) | stat: -rw-r--r-- 2,328 bytes parent folder | download | duplicates (3)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
include nessus.tmpl

all : mkplugins

mkplugins :
	cd plugins && ./make_world
	
clean : 
	cd plugins && ./make_world clean

install-updater :
	test -d $(DESTDIR)${sbindir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${sbindir}
	$(INSTALL) -o $(installuser) -m 0555 nessus-update-plugins \
		$(DESTDIR)${sbindir}
	$(INSTALL) -o $(installuser) -m 0555 nessus-update-plugins-gpl \
		$(DESTDIR)${sbindir}
	@test -d $(DESTDIR)${mandir}/man8 || $(INSTALL_DIR) $(DESTDIR)${mandir}/man8
	$(INSTALL) -o $(installuser) -m 0444 docs/nessus-update-plugins.8 \
		$(DESTDIR)${mandir}/man8
	$(INSTALL) -o $(installuser) -m 0444 docs/nessus-update-plugins-gpl.8 \
		$(DESTDIR)${mandir}/man8

install-dirs:
	test -d $(DESTDIR)${libdir}/nessus || $(INSTALL_DIR) -m 755 \
		$(DESTDIR)${libdir}/nessus
	test -d $(DESTDIR)${libdir}/nessus/plugins || $(INSTALL_DIR) -m 755 \
		$(DESTDIR)${libdir}/nessus/plugins
	
install-nasl:	install-dirs
	for scripts in scripts/*.nasl; do \
	$(INSTALL) -o $(installuser) -m 444 $$scripts \
		$(DESTDIR)${libdir}/nessus/plugins; \
	done

install-inc: install-dirs
	for scripts in scripts/*.inc; do \
	$(INSTALL) -o $(installuser) -m 444 $$scripts \
		$(DESTDIR)${libdir}/nessus/plugins; \
	done

install-nes: install-dirs
	for plugins in bin/*.nes; do \
	$(INSTALL) -o $(installuser) -m 555 $$plugins \
		$(DESTDIR)${libdir}/nessus/plugins; \
	done

install-conf:
	test -d $(DESTDIR)${localstatedir}/nessus || $(INSTALL_DIR) -m 755 \
		$(DESTDIR)${localstatedir}/nessus

install-man:
	test -d $(DESTDIR)${mandir}/man1 || $(INSTALL_DIR) -m 755 \
		$(DESTDIR)${mandir}/man1
	$(INSTALL) -m 644 pf/nessus-build.1 $(DESTDIR)${mandir}/man1

install : all \
	install-dirs install-nasl install-inc install-nes \
	install-man install-conf $(INSTALL_UPDATER) 
	
	$(INSTALL_DIR) -m 755 $(DESTDIR)${libdir}/nessus/plugins_factory
	$(INSTALL) -m 444 pf/Makefile $(DESTDIR)${libdir}/nessus/plugins_factory
	$(INSTALL) -m 444 libtool $(DESTDIR)${libdir}/nessus/plugins_factory
	$(INSTALL) -m 444 nessus.tmpl $(DESTDIR)${libdir}/nessus/plugins_factory
	test -d $(DESTDIR)${prefix}/bin || $(INSTALL_DIR) -m 755 \
		$(DESTDIR)${prefix}/bin
	$(INSTALL) -m 755 pf/nessus-build $(DESTDIR)${prefix}/bin/

distclean : clean
	rm -f libtool config.cache config.status config.log nessus.tmpl nessus-update-plugins
	rm -f bin/*.nes pf/nessus-build