File: Makefile.am

package info (click to toggle)
nepenthes 0.1.7-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,780 kB
  • ctags: 4,055
  • sloc: cpp: 31,225; sh: 8,580; lisp: 925; makefile: 607
file content (62 lines) | stat: -rw-r--r-- 2,305 bytes parent folder | download
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
# nepenthes meta-Makefile
# Maximillian Dornseif
# $Id: Makefile.am 527 2006-04-23 17:48:01Z common $

AUTOMAKE_OPTIONS = foreign

SUBDIRS = nepenthes-core modules 
#tools

EXTRA_DIST = configure.ac CHANGES doc/README.VFS doc/logo-shaded.svg doc/nepenthes.8 conf/nepenthes.conf.dist

docdir = $(prefix)/share/doc/nepenthes
doc_DATA = doc/README.VFS doc/logo-shaded.svg

#sysconf_DATA = conf/nepenthes.conf.dist

AM_CXXFLAGS = ''

#ifndef NDEBUG
#AM_CXXFLAGS += -g
#endifndef

#ifdef PROFILE
#AM_CXXFLAGS += -pg
#endifdef

# $(INSTALL_DATA) $(srcdir)/conf/nepenthes.conf.dist $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf.dist

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/nepenthes
	$(INSTALL_DATA) $(srcdir)/conf/nepenthes.conf.dist $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf.dist; \
	if [ ! -e $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf ]; then \
		$(INSTALL_DATA) $(srcdir)/conf/nepenthes.conf.dist $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf; \
	fi	
#	for src in `find modules -name '*.conf.dist'`; do \
#		$(INSTALL_DATA) "$$src" $(DESTDIR)$(sysconfdir)/nepenthes ; \
#	done
	for src in `find modules -name '*.conf.dist'`; do \
		dst="$(DESTDIR)$(sysconfdir)/nepenthes/`basename "$$src" | perl -npe 's/\.dist$$//'`" ; \
		if [ ! -e "$$dst" ] ; then \
		 	$(INSTALL_DATA) "$$src" "$$dst" ; \
		fi ; \
	done
	
	$(mkinstalldirs) $(DESTDIR)$(mandir)
	$(mkinstalldirs) $(DESTDIR)$(mandir)/man8
	$(INSTALL_DATA) $(srcdir)/doc/nepenthes.8 $(DESTDIR)$(mandir)/man8/nepenthes.8;
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes/geolocation
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes/signatures

	$(INSTALL_DATA) modules/shellcode-signatures/shellcode-signatures.sc $(DESTDIR)$(sysconfdir)/nepenthes/signatures/
	
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes/gotek
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/nepenthes
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/nepenthes/binaries
	$(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/nepenthes/hexdumps