Skip to contentSkip to conversation

apparmor: cleanup generated files correctly

PATCH In review Michal Hocko 2 participants 2 messages Jan 7, 2011 – Jan 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 apparmor: cleanup generated files correctly

Hi John,
could you consider the patch bellow. The issue is minor but I guess it is worth having fixed.
---

Quoted 1 line

From a6b164aeff1234708595d06dd6f9abeb59564da6 Mon Sep 17 00:00:00 2001

From: Michal Hocko <[email protected]>
Date: Fri, 7 Jan 2011 15:03:02 +0100
Subject: [PATCH] apparmor: cleanup generated files correctly

clean-files should be defined as a variable not a target.

---
 security/apparmor/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
security/apparmor/Makefile +1 -1
index f204869..bbb942a 100644
@@ -6,7 +6,7 @@ apparmor-y := apparmorfs.o audit.o capability.o context.o ipc.o lib.o match.o \
               path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \
               resource.o sid.o file.o
 
-clean-files: capability_names.h af_names.h
+clean-files := capability_names.h af_names.h
 
 quiet_cmd_make-caps = GEN     $@
 cmd_make-caps = echo "static const char *capability_names[] = {" > $@ ; sed -n -e "/CAP_FS_MASK/d" -e "s/^\#define[ \\t]\\+CAP_\\([A-Z0-9_]\\+\\)[ \\t]\\+\\([0-9]\\+\\)\$$/[\\2]  = \"\\1\",/p" $< | tr A-Z a-z >> $@ ; echo "};" >> $@
Signature · 9 lines
1.7.2.3

-- 
Michal Hocko
L3 team 
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Michal Hocko

Hi John,
could you consider the patch bellow. The issue is minor but I guess it is worth having fixed.

certainly thanks for the fix, I'll pull into the AA tree and push up with a couple of other fixes I have pending

Quoted 26 lines

---
From a6b164aeff1234708595d06dd6f9abeb59564da6 Mon Sep 17 00:00:00 2001
From: Michal Hocko <[email protected]>
Date: Fri, 7 Jan 2011 15:03:02 +0100
Subject: [PATCH] apparmor: cleanup generated files correctly

clean-files should be defined as a variable not a target.

---
 security/apparmor/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
security/apparmor/Makefile +1 -1
index f204869..bbb942a 100644
@@ -6,7 +6,7 @@ apparmor-y := apparmorfs.o audit.o capability.o context.o ipc.o lib.o match.o \
               path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \
               resource.o sid.o file.o
 
-clean-files: capability_names.h af_names.h
+clean-files := capability_names.h af_names.h
 
 quiet_cmd_make-caps = GEN     $@
 cmd_make-caps = echo "static const char *capability_names[] = {" > $@ ; sed -n -e "/CAP_FS_MASK/d" -e "s/^\#define[ \\t]\\+CAP_\\([A-Z0-9_]\\+\\)[ \\t]\\+\\([0-9]\\+\\)\$$/[\\2]  = \"\\1\",/p" $< | tr A-Z a-z >> $@ ; echo "};" >> $@