File: Makefile

package info (click to toggle)
libnasl 2.2.8-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,504 kB
  • ctags: 1,275
  • sloc: ansic: 15,837; sh: 7,767; yacc: 1,054; makefile: 255; perl: 27
file content (42 lines) | stat: -rw-r--r-- 1,509 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
include nasl.tmpl

all: 
	cd nasl && ${MAKE}
	cd doc && ${MAKE}

nasl.tmpl: nasl.tmpl.in configure
	$(SHELL) configure $(CONFIGURE_ARGS)
	touch $@

install: all
	cd nasl && ${MAKE} install
	test -d $(DESTDIR)${includedir}/nessus || $(INSTALL_DIR) -m 755 $(DESTDIR)${includedir}/nessus
	$(INSTALL) -c -m 0444 include/nasl.h $(DESTDIR)${includedir}/nessus
	test -d $(DESTDIR)${bindir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${bindir}
	$(INSTALL) -c -m 0755 nasl-config $(DESTDIR)${bindir}/nasl-config
	test -d $(DESTDIR)${mandir}/man1 || $(INSTALL_DIR) -m 755 $(DESTDIR)${mandir}/man1
	$(INSTALL) -c -m 0644 doc/nasl-config.1 $(DESTDIR)${mandir}/man1
	$(INSTALL) -c -m 0644 doc/nasl.1 $(DESTDIR)${mandir}/man1
	$(INSTALL) -c -m 0644 doc/nasl-config.1 $(DESTDIR)${mandir}/man1
	test -d $(DESTDIR)${localstatedir}/nessus || $(INSTALL_DIR) -m 755 $(DESTDIR)${localstatedir}/nessus
	$(INSTALL) -c -m 0644 doc/nessus_org.pem $(DESTDIR)${localstatedir}/nessus/nessus_org.pem


	@echo
	@echo ' --------------------------------------------------------------'
	@echo ' libnasl has been sucessfully installed. '
	@echo " Make sure that $(bindir) is in your PATH before you"
	@echo " continue "
	@echo ' --------------------------------------------------------------'
	@echo
clean :
	cd nasl && ${MAKE} clean
	cd doc && ${MAKE} clean

distclean : clean
	rm -f ${rootdir}/include/config.h libtool config.cache \
	config.status config.log
	cd nasl && ${MAKE} distclean
	cd doc && ${MAKE} distclean
	rm -f nasl.tmpl nasl-config