summaryrefslogtreecommitdiff
path: root/pkgtools/compat_headers/files/Makefile.in
blob: 43129f67b4bb31b1e5e44db020cddee35b9cad84 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $NetBSD: Makefile.in,v 1.3 2008/05/25 18:32:28 tnn Exp $

REPLACE_stdint=		@REPLACE_stdint@
REPLACE_inttypes=	@REPLACE_inttypes@
REPLACE_resolv=		@REPLACE_resolv@
REPLACE_sys_select=	@REPLACE_sys_select@
REPLACE_math=		@REPLACE_math@
REPLACE_stdlib=		@REPLACE_stdlib@
REPLACE_stdarg=		@REPLACE_stdarg@

PREFIX=         @prefix@
DESTDIR?=
INSTALL=	@INSTALL@

all: .PHONY
.if ${REPLACE_stdint} == "yes"
	./mkhdr.sh stdint.h < stdint.h.in > stdint.h
.endif
.if ${REPLACE_inttypes} == "yes"
	./mkhdr.sh inttypes.h < inttypes.h.in > inttypes.h
.endif
.if ${REPLACE_resolv} == "yes"
	./mkhdr.sh resolv.h < resolv.h.in > resolv.h
.endif
.if ${REPLACE_sys_select} == "yes"
	./mkhdr.sh sys/select.h < select.h.in > select.h
.endif
.if ${REPLACE_math} == "yes"
	./mkhdr.sh math.h < math.h.in > math.h
.endif
.if ${REPLACE_stdlib} == "yes"
	./mkhdr.sh stdlib.h < stdlib.h.in > stdlib.h
.endif
.if ${REPLACE_stdarg} == "yes"
	./mkhdr.sh stdarg.h < stdarg.h.in > stdarg.h
.endif

install: .PHONY
	printf "" > PLIST
	${INSTALL} -m 755 -d ${DESTDIR}${PREFIX}/include
.if ${REPLACE_stdint} == "yes"
	${INSTALL} -m 644 -c stdint.h ${DESTDIR}${PREFIX}/include
	echo include/stdint.h >> PLIST
.endif
.if ${REPLACE_inttypes} == "yes"
	${INSTALL} -m 644 -c inttypes.h ${DESTDIR}${PREFIX}/include
	echo include/inttypes.h >> PLIST
.endif
.if ${REPLACE_resolv} == "yes"
	${INSTALL} -m 644 -c resolv.h ${DESTDIR}${PREFIX}/include
	echo include/resolv.h >> PLIST
.endif
.if ${REPLACE_sys_select} == "yes"
	${INSTALL} -m 755 -d ${DESTDIR}${PREFIX}/include/sys
	${INSTALL} -m 644 select.h ${DESTDIR}${PREFIX}/include/sys
	echo include/sys/select.h >> PLIST
.endif
.if ${REPLACE_math} == "yes"
	${INSTALL} -m 644 math.h ${DESTDIR}${PREFIX}/include
	echo include/math.h >> PLIST
.endif
.if ${REPLACE_stdlib} == "yes"
	${INSTALL} -m 644 stdlib.h ${DESTDIR}${PREFIX}/include
	echo include/stdlib.h >> PLIST
.endif
.if ${REPLACE_stdarg} == "yes"
	${INSTALL} -m 644 stdarg.h ${DESTDIR}${PREFIX}/include
	echo include/stdarg.h >> PLIST
.endif