xref: /titanic_52/usr/src/lib/krb5/kadm5/clnt/Makefile (revision 06e46062ef4f5f4b687cbafb4518fb123fe23920)
1#
2# Copyright (c) 1997-2001 by Sun Microsystems, Inc.
3# All rights reserved.
4#
5#pragma ident	"%Z%%M%	%I%	%E% SMI"
6#
7# lib/krb5/kadm5/clnt/Makefile
8
9include		../../Makefile.lib
10
11SUBDIRS=	spec $(MACH) $(BUILD64) $(MACH64)
12
13all :=		TARGET= all
14clean :=	TARGET= clean
15clobber :=	TARGET= clobber
16install :=	TARGET= install
17lint :=		TARGET= lint
18
19LIBRARY= 	libkadm5clnt.a
20POFILE=		$(LIBRARY:%.a=%.po)
21POFILES=	generic.po
22
23.KEEP_STATE:
24
25all clean clobber install lint: $(SUBDIRS)
26
27_msg: $(MSGDOMAIN) .WAIT $(POFILE)
28	$(RM) $(MSGDOMAIN)/$(POFILE)
29	$(CP) $(POFILE) $(MSGDOMAIN)
30
31$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
32	$(RM) $@
33	$(CAT) $(POFILES) > $@
34
35generic.po: FRC
36	$(RM) messages.po
37	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] *.[ch]`
38	$(SED) "/^domain/d" messages.po > $@
39	$(RM) messages.po
40
41$(MACH) $(MACH64) spec: FRC
42	@cd $@; pwd; $(MAKE) $(TARGET)
43
44FRC:
45
46$(MSGDOMAIN):
47	$(INS.dir)
48