xref: /illumos-gate/usr/src/lib/libzutil/Makefile (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
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 2020 Joyent, Inc.
14#
15
16include		../Makefile.lib
17
18HDRS=		libzutil.h
19
20HDRDIR=		common
21
22SUBDIRS=	$(MACH)
23$(BUILD64)SUBDIRS += $(MACH64)
24
25all :=		TARGET= all
26clean :=	TARGET= clean
27clobber :=	TARGET= clobber
28install :=	TARGET= install
29
30MSGFILES =	`$(GREP) -l gettext $(HDRDIR)/*.[ch]`
31POFILE =	libzutil.po
32
33.KEEP_STATE:
34
35all clean clobber install: $(SUBDIRS)
36
37$(POFILE):	pofile_MSGFILES
38
39install_h: $(ROOTHDRS)
40
41check: $(CHECKHDRS)
42
43_msg: $(MSGDOMAINPOFILE)
44
45$(SUBDIRS): FRC
46	@cd $@; pwd; $(MAKE) $(TARGET)
47
48FRC:
49
50include ../Makefile.targ
51include ../../Makefile.msg.targ
52