File: Makefile.am

package info (click to toggle)
sbnc 1.2-26
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,216 kB
  • sloc: cpp: 17,556; ansic: 15,514; sh: 13,419; tcl: 5,567; php: 448; makefile: 284
file content (43 lines) | stat: -rw-r--r-- 1,691 bytes parent folder | download | duplicates (2)
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
export MOD_DIR=@SUBST_MOD_DIR@
SUBDIRS=src @BNCTCL_MODULE@ @IDENTD_MODULE@ php bncmysql
EXTRA_DIST=cares.m4 cares2.m4 aclocal.m4 tcl.m4 sbnc.tcl ssl.conf LICENSE LICENSE.Exceptions README README.ssl README.motd README.lean README.service README.settings README.iface2

install:
	@echo /var/lib/sbnc/libsbnc.la > debian/temp/sbnc.ipc
	@if [ ! -f debian/temp/sbnc.tcl ]; then cp sbnc.tcl debian/temp/sbnc.tcl; fi
	@chmod 600 debian/temp/sbnc.tcl

update:
	@export MOD_DIR="lib-`date +%Y%m%d%H%M%S`"; \
	${MAKE} clean; \
	${MAKE} -C src; \
	${MAKE} -C bnctcl; \
	${MAKE} -C src install-exec-am; \
	${MAKE} -C bnctcl install; \
	${MAKE} -C scripts install; \
	echo "Reloading any running instances of shroudBNC..."; \
	echo ./$${MOD_DIR}/libsbnc.la > ${exec_prefix}/sbnc.ipc;
	@if [ -f ${exec_prefix}/sbnc.pid ]; then \
		if $$(kill -CHLD `cat ${exec_prefix}/sbnc.pid` >/dev/null 2>&1); then \
			echo "Sending TERM signal to shroudBNC child instance in ${exec_prefix} (PID `cat ${exec_prefix}/sbnc.pid`)"; \
			kill -TERM `cat ${exec_prefix}/sbnc.pid` >/dev/null 2>&1; \
		fi; \
	fi;
	@echo "********************************************"
	@echo "* shroudBNC has successfully been updated. *"
	@echo "********************************************"

sslcert:
	@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;