diff options
| author | Jan Friedel <Jan.Friedel@Sun.COM> | 2010-02-19 16:37:39 +0100 |
|---|---|---|
| committer | Jan Friedel <Jan.Friedel@Sun.COM> | 2010-02-19 16:37:39 +0100 |
| commit | 1eea4119ffbe77304e95eb3044905255ff920d33 (patch) | |
| tree | 9ea115da5eaa4266a3f9d196efceee7a831fc112 /usr/src/cmd/auditconfig | |
| parent | dfc7be02c381b7c61998fdb9ecbf069933d62381 (diff) | |
| download | illumos-joyent-1eea4119ffbe77304e95eb3044905255ff920d33.tar.gz | |
6910977 _msg target in $SRC/cmd/<audit_related_command>/Makefile should comply with the recommended pattern
Diffstat (limited to 'usr/src/cmd/auditconfig')
| -rw-r--r-- | usr/src/cmd/auditconfig/Makefile | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/usr/src/cmd/auditconfig/Makefile b/usr/src/cmd/auditconfig/Makefile index e4fbddf1d8..bf9a78847a 100644 --- a/usr/src/cmd/auditconfig/Makefile +++ b/usr/src/cmd/auditconfig/Makefile @@ -18,7 +18,7 @@ # # CDDL HEADER END # -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # @@ -28,9 +28,6 @@ PROG = auditconfig include $(SRC)/cmd/Makefile.cmd -POFILE = auditconfig.po -MSGFILES = $(SRCS) - LIBBSM = $(SRC)/lib/libbsm/common AUDITCONFIG = $(SRC)/cmd/auditconfig AUDITD = $(SRC)/cmd/auditd @@ -40,22 +37,25 @@ LDLIBS += -lnsl -lbsm -lscf OBJS = audit_scf.o audit_scf_shared.o auditconfig.o SRCS = $(OBJS:%.o=%.c) +POFILE = $(PROG).po +MSGFILES = $(SRCS) + CPPFLAGS += -I$(LIBBSM) -I$(AUDITD) -I$(AUDITCONFIG) .KEEP_STATE: -install: all $(ROOTUSRSBINPROG) all: $(PROG) +install: all $(ROOTUSRSBINPROG) + $(PROG): $(SRCS) $(OBJS) $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(POST_PROCESS) - $(POFILE): $(MSGFILES) $(BUILDPO.msgfiles) -#_msg: $(MSGDOMAINPOFILE) +_msg: $(MSGDOMAINPOFILE) clean: $(RM) $(OBJS) @@ -63,12 +63,4 @@ clean: lint: lint_SRCS include $(SRC)/cmd/Makefile.targ -#include $(SRC)/Makefile.msg.targ -BUILDPO.msgfiles = \ - $(RM) messages.po $(TEXT_DOMAIN).po; \ - $(TOUCH) $(TEXT_DOMAIN).po; \ - $(XGETTEXT) $(XGETFLAGS) $(MSGFILES); \ - $(SED) -e '/^\# msgid/,/^\# msgstr/d' -e '/^domain/d' \ - -e '/^\#$$/d' -e '/^\#, /d' \ - messages.po $(TEXT_DOMAIN).po > $(POFILE); \ - $(RM) messages.po $(TEXT_DOMAIN).po +include $(SRC)/Makefile.msg.targ |
