summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/lynx/Makefile.bsd-wrapper
blob: 80aac22e74acd3533e5f8e0d9f0fbcd7e6d1a9d3 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#	$OpenBSD: Makefile.bsd-wrapper,v 1.17 2009/05/31 09:16:50 avsm Exp $

MAN=	lynx.1
CLEANFILES=	lynx.cat1 lynx.1
DPADD=	${LIBSSL} ${LIBCRYPTO}

.if (${MACHINE} == "vax")
OPT=-O0
.elif (${MACHINE_ARCH} == "m68k")
OPT=-O1
.endif

GNUCFLAGS=	CC="${CC}" CFLAGS="${CFLAGS} ${COPTS} ${OPT}"
CONFIGURE_ARGS= --with-ssl=/usr --enable-ipv6
HTMLDIR=	/usr/share/doc/html
HELPFILES=	keystrokes/alt_edit_help.html keystrokes/bookmark_help.html \
		keystrokes/cookie_help.html keystrokes/dired_help.html \
		keystrokes/edit_help.html keystrokes/environments.html \
		keystrokes/follow_help.html keystrokes/gopher_types_help.html \
		keystrokes/history_help.html keystrokes/keystroke_help.html \
		keystrokes/movement_help.html keystrokes/option_help.html \
		keystrokes/other_help.html keystrokes/print_help.html \
		keystrokes/scrolling_help.html keystrokes/test_display.html \
		keystrokes/visited_help.html keystrokes/xterm_help.html \
		keystrokes/bashlike_edit_help.html Lynx_users_guide.html \
		about_lynx.html lynx-dev.html lynx_help_main.html lynx_url_support.html

.include <bsd.own.mk>

.ifdef NOMAN
LYNX_CAT1=
.else
LYNX_CAT1=lynx.cat1
.endif

all:	config.status ${LYNX_CAT1}
	${MAKE}

.FORCE:	.IGNORE

.ifdef GLOBAL_AUTOCONF_CACHE
CF=	--cache-file=${GLOBAL_AUTOCONF_CACHE}
.else
CF=
.endif

config: .FORCE
.ifndef GLOBAL_AUTOCONF_CACHE
	-rm -f config.cache
.endif
	PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
	${GNUCFLAGS} \
	INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
	sh ${.CURDIR}/configure --prefix=/usr --sysconfdir=/etc --disable-color-style ${CONFIGURE_ARGS}

config.status:
	PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
	${GNUCFLAGS} \
	INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
	sh ${.CURDIR}/configure --prefix=/usr --sysconfdir=/etc --disable-color-style ${CONFIGURE_ARGS} ${CF}

lynx.1:	${.CURDIR}/lynx.man
	-cp -p ${.ALLSRC} ${.TARGET}

.ifdef NOMAN
maninstall: 
	@echo NOMAN is set
.endif

helpinstall:
	@-for i in ${HELPFILES}; do \
		j=`dirname $$i`; \
		echo "Installing ${DESTDIR}${HTMLDIR}/lynx_help/$$i"; \
		${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \
		${.CURDIR}/lynx_help/$$i ${DESTDIR}${HTMLDIR}/lynx_help/$$j/; \
	done

install: maninstall helpinstall
	${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} \
	    -g ${BINGRP} -m ${BINMODE} lynx ${DESTDIR}/usr/bin/lynx

distribution:
	${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
            ${.CURDIR}/lynx.cfg ${DESTDIR}/etc/lynx.cfg

clean cleandir:
	-@if [ -e makefile ]; then ${MAKE} distclean; fi
	rm -f ${CLEANFILES}

depend:
	# Nothing here so far...

lint:
	# Nothing here so far...

tags:
	# Nothing here so far...

.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.ifndef NOMAN
.include <bsd.man.mk>
.endif