kbuild: Use targets := to tell kbuild about additional targets
[linux-flexiantxendom0-3.2.10.git] / arch / um / sys-i386 / util / Makefile
index 442e041..48a2109 100644 (file)
@@ -1,6 +1,7 @@
-EXTRA_TARGETS  := mk_sc mk_thread mk_thread_kern.o
 
 host-progs     := mk_sc
+build-targets  := $(host-progs) mk_thread
+targets                := mk_thread_kern.o mk_thread_user.o
 
 mk_sc-objs     := mk_sc.o
 
@@ -11,6 +12,6 @@ $(obj)/mk_thread_user.o : $(src)/mk_thread_user.c
        $(CC) $(USER_CFLAGS) -c -o $@ $<
 
 clean :
-       $(RM) -f $(EXTRA_TARGETS)
+       $(RM) -f $(build-targets)
 
 archmrproper : clean