File: Makefile.debian

package info (click to toggle)
aolserver4-nssha1 0.1-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 64 kB
  • ctags: 48
  • sloc: ansic: 281; makefile: 60
file content (62 lines) | stat: -rw-r--r-- 1,317 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $Header: /cvsroot/aolserver/nscache/Makefile,v 1.1.1.1 2002/09/29 04:40:51 scottg Exp $

ifdef INST
NSHOME   ?=  $(INST)
else
NSHOME   ?=  ../aolserver
endif

# Version number to use in release tags.
VER_ = $(subst .,_,$(VER))

#
# Module name
#
MOD      =  nssha1.so

#
# Objects to build
#
OBJS     =  nssha1.o

#
# Header files in THIS directory (included with your module)
#
HDRS     =  

#
# Extra libraries required by your module (-L and -l go here)
#
MODLIBS  =  

#
# Compiler flags required by your module (-I for external headers goes here)
#
CFLAGS   =  -DACS


include  /usr/lib/aolserver4/Makefile.module

.PHONY: test dist

test:
	cd test && $(INST)/bin/nsd -ft nsd.tcl

release:
	@if [ "$$VER" = "" ]; then echo 1>&2 "VER must be set to version number!"; exit 1; fi
	cvs rtag -r stable release-$(VER_) nssha1

force-release:
	@if [ "$$VER" = "" ]; then echo 1>&2 "VER must be set to version number!"; exit 1; fi
	cvs rtag -F -r stable release-$(VER_) nssha1

dist:
	@if [ "$$VER" = "" ]; then echo 1>&2 "VER must be set to version number!"; exit 1; fi
	rm -rf work
	mkdir work
	cd work && cvs co -r release-$(VER_) nssha1
	perl -pi -e 's/\@VER\@/$(VER)/g' work/nssha1/nssha1.c
	mv work/nssha1 work/nssha1-$(VER)
	( cd work && tar cvf - nssha1-$(VER) ) | gzip -9 > nssha1-$(VER).tar.gz
	rm -rf work