Fix make clean
authorKalle Valo <kalle.valo@canonical.com>
Fri, 4 Jun 2010 10:54:12 +0000 (13:54 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 4 Jun 2010 13:14:43 +0000 (15:14 +0200)
Running make clean twice in a row fails with error:

make: *** No rule to make target `include/connman', needed by `clean-local'.
Stop.

Fix it by moving the target as an argument for rm.

Makefile.am

index 0e98e8b..41fffae 100644 (file)
@@ -227,5 +227,5 @@ include/connman/%.h: include/%.h
        $(AM_V_at)$(MKDIR_P) include/connman
        $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
 
-clean-local: include/connman
-       @$(RM) -r $<
+clean-local:
+       @$(RM) -rf include/connman