xref: /illumos-gate/usr/src/cmd/localedef/Makefile (revision 3c1654f0)
16b5e5868SGarrett D'Amore#
26b5e5868SGarrett D'Amore# This file and its contents are supplied under the terms of the
36b5e5868SGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
45aec55ebSGarrett D'Amore# You may only use this file in accordance with the terms of version
55aec55ebSGarrett D'Amore# 1.0 of the CDDL.
66b5e5868SGarrett D'Amore#
76b5e5868SGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
86b5e5868SGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
96b5e5868SGarrett D'Amore# http://www.illumos.org/license/CDDL.
106b5e5868SGarrett D'Amore#
116b5e5868SGarrett D'Amore
126b5e5868SGarrett D'Amore#
133e6960d7SYuri Pankov# Copyright 2017 Nexenta Systems, Inc.
148f4fd638SAndrzej Szeszo# Copyright 2011 EveryCity Ltd. All rights reserved.
152da1cd3aSGarrett D'Amore# Copyright 2013 DEY Storage Systems, Inc.
16bb8a2a6aSPatrick Mooney# Copyright 2016 Joyent, Inc.
17*3c1654f0SAndrew Stormont# Copyright 2017 RackTop Systems.
186b5e5868SGarrett D'Amore#
196b5e5868SGarrett D'Amore
20503609a9SYuri Pankovinclude		$(SRC)/cmd/Makefile.cmd
21503609a9SYuri Pankovinclude		$(SRC)/cmd/Makefile.ctf
22503609a9SYuri Pankovinclude		$(SRC)/cmd/localedef/Makefile.common
236b5e5868SGarrett D'Amore
24*3c1654f0SAndrew StormontLDLIBS +=	-lavl -lgen
256b5e5868SGarrett D'Amore
26c772408bSYuri Pankov.KEEP_STATE:
27c772408bSYuri Pankov
28503609a9SYuri Pankovall:		$(PROG)
297de0ac86SRobert Mustacchi
30503609a9SYuri Pankovparser.tab.c parser.tab.h: parser.y localedef.h
31503609a9SYuri Pankov		$(YACC) $(YFLAGS) parser.y
327de0ac86SRobert Mustacchi
33503609a9SYuri Pankov$(OBJS):	parser.tab.h
346b5e5868SGarrett D'Amore
35503609a9SYuri Pankov$(PROG):	$(OBJS)
36503609a9SYuri Pankov		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
37503609a9SYuri Pankov		$(POST_PROCESS)
38b6805bf7SGordon Ross
396b5e5868SGarrett D'Amore$(POFILE):	$(PIFILES)
40503609a9SYuri Pankov		$(RM) $@
41503609a9SYuri Pankov		$(RM) messages.po
42503609a9SYuri Pankov		$(XGETTEXT) -s $(PIFILES)
43503609a9SYuri Pankov		$(SED) -e '/domain/d' messages.po > $@
44503609a9SYuri Pankov		$(RM) $(PIFILES) messages.po
456b5e5868SGarrett D'Amore
46503609a9SYuri Pankovinstall:	all $(ROOTPROG)
476b5e5868SGarrett D'Amore
48503609a9SYuri Pankovlint:		lint_SRCS
496b5e5868SGarrett D'Amore
50503609a9SYuri Pankovclean:
51503609a9SYuri Pankov		$(RM) $(CLEANFILES)
52b599bd93SRobert Mustacchi
53503609a9SYuri Pankovinclude		$(SRC)/cmd/Makefile.targ
54