xref: /titanic_51/usr/src/lib/krb5/ss/Makefile (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
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/ss/Makefile
8
9include		../Makefile.lib
10
11SUBDIRS=	spec $(MACH)
12
13all :=		TARGET= all
14clean :=	TARGET= clean
15clobber :=	TARGET= clobber
16install :=	TARGET= install
17lint :=		TARGET= lint
18
19LIBRARY= 	libss.a
20
21POFILE = $(LIBRARY:%.a=%.po)
22POFILES = generic.po
23
24.KEEP_STATE:
25
26all clean clobber install lint: $(SUBDIRS)
27
28$(MACH) spec: FRC
29	@cd $@; pwd; $(MAKE) $(TARGET)
30
31FRC:
32
33_msg: $(MSGDOMAIN) .WAIT $(POFILE)
34	$(RM) $(MSGDOMAIN)/$(POFILE)
35	$(CP) $(POFILE) $(MSGDOMAIN)
36
37$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
38	$(RM) $@
39	$(CAT) $(POFILES) > $@
40
41generic.po: FRC
42	$(RM) messages.po
43	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
44	$(SED) "/^domain/d" messages.po > $@
45	$(RM) messages.po
46
47$(MSGDOMAIN):
48	$(INS.dir)
49