summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/Makefile
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-20 17:10:06 -0500
committerDave Brolley <brolley@redhat.com>2009-11-20 17:10:06 -0500
commitbaba4e15bf291b698986f703c9ec89742012922c (patch)
treea778df0c15576e30e468d0c28a497e2037fca7c3 /runtime/uprobes/Makefile
parente16e0c563bf44a234396dbcfd2d0b6cfaac91078 (diff)
downloadsystemtap-steved-baba4e15bf291b698986f703c9ec89742012922c.tar.gz
systemtap-steved-baba4e15bf291b698986f703c9ec89742012922c.tar.xz
systemtap-steved-baba4e15bf291b698986f703c9ec89742012922c.zip
Allow members of the group stap-server to build the uprobes module.
Diffstat (limited to 'runtime/uprobes/Makefile')
-rw-r--r--runtime/uprobes/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile
index bc0fd6a9..e58373af 100644
--- a/runtime/uprobes/Makefile
+++ b/runtime/uprobes/Makefile
@@ -5,6 +5,10 @@ DEPENDENCIES := $(shell echo uprobes.[ch] uprobes_*.[ch])
DEPENDENCIES += $(shell echo ../uprobes2/uprobes.[ch] ../uprobes2/uprobes_*.[ch])
DEPENDENCIES += Makefile
+CLEAN_FILES := $(shell echo *.mod.c *.ko *.o .*.cmd *~ *.sgn)
+CLEAN_FILES += Module.markers modules.order Module.symvers
+CLEAN_DIRS := .tmp_versions
+
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
if test -f ../../../../bin/stap-sign-module; then \
@@ -14,12 +18,14 @@ default:
fi \
done \
fi
+ chgrp stap-server $(CLEAN_FILES) 2>/dev/null || true
+ chgrp stap-server $(CLEAN_DIRS) 2>/dev/null || true
+ chgrp stap-server $(CLEAN_DIRS)/* 2>/dev/null || true
# This target is used with "make -q" to see whether a "real" build is needed.
uprobes.ko: $(DEPENDENCIES)
@echo uprobes.ko is not a valid target. See Makefile.
clean:
- rm -f *.mod.c *.ko *.o .*.cmd *~ *.sgn
- rm -f Module.markers modules.order Module.symvers
- rm -rf .tmp_versions
+ rm -f $(CLEAN_FILES)
+ rm -rf $(CLEAN_DIRS)