File: Makefile.debian

package info (click to toggle)
aolserver-nspostgres 4.0beta1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 128 kB
  • ctags: 84
  • sloc: ansic: 1,587; makefile: 117
file content (65 lines) | stat: -rw-r--r-- 1,430 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
63
64
65
# $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

PGLIB = /usr/lib
PGINC = /usr/include/postgresql/

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

#
# Module name
#
MOD      =  nspostgres.so

#
# Objects to build
#
OBJS     =  nspostgres.o

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

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

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


include  /usr/lib/aolserver/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_) nspostgres

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_) nspostgres

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_) nspostgres
	perl -pi -e 's/\@VER\@/$(VER)/g' work/nspostgres/nspostgres.c
	mv work/nspostgres work/nspostgres-$(VER)
	( cd work && tar cvf - nspostgres-$(VER) ) | gzip -9 > nspostgres-$(VER).tar.gz
	rm -rf work