summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/postfix/postconf/Makefile
blob: 8d5287f384d22b1064cd9b14f234f6cfc37e6493 (plain)
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
#	$NetBSD: Makefile,v 1.12 2006/07/19 02:04:44 rpaulo Exp $

# XXX Note we aren't building ../conf/main.cf.default
# The shipped makefiles construct it using postconf -d after building
# postconf. It isn't entirely clear how to deal with that in a cross
# build environment, and the .default file isn't that useful to
# the user anyway.

NOMAN=	# defined

.include <bsd.own.mk>

PROG=	postconf

DIST=	${NETBSDSRCDIR}/gnu/dist/postfix/src/${PROG}
.PATH:	${DIST}

BINDIR= ${PFIX_SBINDIR}           

PSRCS=	postconf.c
GENSRCS=bool_table.h bool_vars.h int_table.h int_vars.h str_table.h \
	str_vars.h time_table.h time_vars.h raw_table.h raw_vars.h

SRCS=	${PSRCS} ${GENSRCS}
DPSRCS=	${GENSRCS}

CLEANFILES+= ${GENSRCS}

CPPFLAGS+= -I.

DPADD+= ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL}
LDADD+= ${LIBPGLOBAL} ${LIBPXSASL} ${LIBPUTIL}

# XXX Note that there is no ${AWK} variable in our build system. This
# is probably a deficiency.
${GENSRCS}: postconf-hdrs.stamp
CLEANFILES+= postconf-hdrs.stamp
postconf-hdrs.stamp: ${DIST}/../global/mail_params.h ${DIST}/../global/mail_params.c
	${_MKMSG_CREATE} ${GENSRCS}
	rm -f ${.TARGET}
	awk -f ${DIST}/extract.awk ${DIST}/../*/*.c
	touch ${.TARGET}

.include <bsd.prog.mk>