xref: /illumos-gate/usr/src/cmd/localedef/Makefile (revision d0b3c59ba652f183eeec1414dd9fbdc56bf05cc8)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2017 Nexenta Systems, Inc.
14# Copyright 2011 EveryCity Ltd. All rights reserved.
15# Copyright 2013 DEY Storage Systems, Inc.
16# Copyright 2016 Joyent, Inc.
17# Copyright 2017 RackTop Systems.
18#
19
20include		$(SRC)/cmd/Makefile.cmd
21include		$(SRC)/cmd/Makefile.ctf
22include		$(SRC)/cmd/localedef/Makefile.common
23
24LDLIBS +=	-lavl -lgen
25
26.KEEP_STATE:
27
28all:		$(PROG)
29
30parser.tab.c parser.tab.h: parser.y localedef.h
31		$(YACC) $(YFLAGS) parser.y
32
33$(OBJS):	parser.tab.h
34
35$(PROG):	$(OBJS)
36		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
37		$(POST_PROCESS)
38
39$(POFILE):	$(PIFILES)
40		$(RM) $@
41		$(RM) messages.po
42		$(XGETTEXT) -s $(PIFILES)
43		$(SED) -e '/domain/d' messages.po > $@
44		$(RM) $(PIFILES) messages.po
45
46install:	all $(ROOTPROG)
47
48lint:		lint_SRCS
49
50clean:
51		$(RM) $(CLEANFILES)
52
53include		$(SRC)/cmd/Makefile.targ
54