[go: up one dir, main page]

File: Makefile.am

package info (click to toggle)
sbnc 1.3.9-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,156 kB
  • ctags: 4,719
  • sloc: ansic: 20,379; cpp: 14,175; sh: 12,783; tcl: 6,025; php: 448; makefile: 430; perl: 46; awk: 25
file content (38 lines) | stat: -rw-r--r-- 1,201 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
if BUILD_BNCTCL_MODULE
BNCTCL_MODULE=bnctcl
endif

if BUILD_IDENTD_MODULE
IDENTD_MODULE=bncidentd
endif

SUBDIRS=third-party src $(BNCTCL_MODULE) $(IDENTD_MODULE) php

EXTRA_DIST=aclocal.m4 debian ssl.conf LICENSE LICENSE.Exceptions m4/tcl.m4 README README.copyright README.faq README.iface2 README.lean README.motd README.settings README.ssl sbnc-start sbnc_version.h

ACLOCAL_AMFLAGS=-I m4

install: install-recursive
	@if [ "${exec_prefix}" = "${HOME}/sbnc" ]; then \
		${INSTALL_PROGRAM} sbnc-start ${exec_prefix}/sbnc; \
	fi;

sslcert:
	@if [ "${exec_prefix}" != "${HOME}/sbnc" ]; then \
		echo "make sslcert can only be used when installing shroudBNC in your home directory. Please use openssl instead to create your SSL certificates."; \
		exit 1; \
	fi;

	@if [ -f ${exec_prefix}/sbnc.key ]; then \
		cp ${exec_prefix}/sbnc.key ${exec_prefix}/sbnc_old.key; \
	fi;

	@if [ -f ${exec_prefix}/sbnc.crt ]; then \
		cp ${exec_prefix}/sbnc.crt ${exec_prefix}/sbnc_old.crt; \
	fi;

	@if [ ! -d ${exec_prefix} ]; then \
		echo "Please install shroudBNC first."; \
	else \
		openssl req -new -x509 -days 3650 -nodes -keyout ${exec_prefix}/sbnc.key -out ${exec_prefix}/sbnc.crt -config ssl.conf; \
	fi;