build: Add a common-clean target

Clean up in a more common fashion as well, initially for ../src/.

Also add $(Q) to the clean target in src/

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2020-09-18 11:49:51 +02:00 committed by Jouni Malinen
parent 06a6adb54e
commit 0430bc8267
10 changed files with 26 additions and 23 deletions

View file

@ -81,8 +81,7 @@ wlantest_cli: $(OBJS_cli) $(OWN_LIBS)
test_vectors: $(TOBJS) $(OWN_LIBS)
$(LDO) $(LDFLAGS) -o test_vectors $(TOBJS) $(OWN_LIBS) $(LIBS)
clean:
$(MAKE) -C ../src clean
rm -f core *~ *.o *.d $(ALL)
clean: common-clean
rm -f core *~ *.o *.d
-include $(OBJS:%.o=%.d)