xref: /minix3/share/misc/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1#	$NetBSD: Makefile,v 1.38 2015/04/23 02:01:12 mrg Exp $
2#	@(#)Makefile	8.1 (Berkeley) 6/8/93
3
4FILES=	NetBSD.el acronyms acronyms-o acronyms.comp airport ascii \
5	birthtoken bsd-family-tree \
6	country domains operator \
7	eqnchar flowers indent.pro inter.phone language man.template \
8	mdoc.template na.phone na.postal style zipcodes
9FILESDIR=${BINDIR}/misc
10
11# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
12# "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
13# IN bsd.own.mk OR /etc/mk.conf.
14
15INSTALL_OFFENSIVE_FORTUNES?=    YES
16.if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
17TYPE=	real
18.else
19TYPE=	fake
20.endif
21CLEANFILES+=acronyms-o
22FILESBUILD_acronyms-o=yes
23
24# According to iana@ISI.EDU, the URL below is the authoritative list
25# distributed by the ISO 3166 Maintenance Agency.
26DOMAIN_URL=	http://www.iana.org/root-whois/index.html
27update-domains:
28	( \
29	  echo '# $$''NetBSD''$$' ;  \
30	  echo '# ISO 3166 country codes, from ${DOMAIN_URL}' ; \
31	  echo '# Last update:' `date` ; \
32	  echo '#' ; \
33	  ftp -o - ${DOMAIN_URL} \
34	  | ${TOOL_SED} -n -f ${.CURDIR}/domains.sed \
35	 ) > domains ; \
36
37update-na.phone:
38	< /dev/null ${TOOL_AWK} -f nanpa.awk > na.phone
39
40update-country:
41	${.CURDIR}/make.country > country
42
43
44.include <bsd.prog.mk>
45
46acronyms-o: acronyms-o.${TYPE}
47	@cp ${.ALLSRC} ${.TARGET}
48