xref: /illumos-gate/usr/src/cmd/localedef/Makefile (revision 503609a9497e27f206d815a06ce90a747d2ce573)
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#
18
19include		$(SRC)/cmd/Makefile.cmd
20include		$(SRC)/cmd/Makefile.ctf
21include		$(SRC)/cmd/localedef/Makefile.common
22
23LDLIBS=		-lavl -lgen
24
25.KEEP_STATE:
26
27all:		$(PROG)
28
29parser.tab.c parser.tab.h: parser.y localedef.h
30		$(YACC) $(YFLAGS) parser.y
31
32$(OBJS):	parser.tab.h
33
34$(PROG):	$(OBJS)
35		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36		$(POST_PROCESS)
37
38$(POFILE):	$(PIFILES)
39		$(RM) $@
40		$(RM) messages.po
41		$(XGETTEXT) -s $(PIFILES)
42		$(SED) -e '/domain/d' messages.po > $@
43		$(RM) $(PIFILES) messages.po
44
45install:	all $(ROOTPROG)
46
47lint:		lint_SRCS
48
49clean:
50		$(RM) $(CLEANFILES)
51
52include		$(SRC)/cmd/Makefile.targ
53