From a87084c841a2bf35a7cb87a38533fefb070d7f9b Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Aug 2012 23:21:55 +0200 Subject: Makefile: move commands from distclean to clean and add missing files There is no reason why generated source files shouldn't be part of the clean target, as opposed to distclean. On the contrary, having them in distclean only looks dangerous when trying to deal with broken dependency rules. Move them to clean, except config.h (which would require configure to be run again). Also, some recently added generated files were missing from the clean targets. --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 45b58838c5..3ef51bc584 100644 --- a/Makefile +++ b/Makefile @@ -639,12 +639,17 @@ clean: -$(RM) $(call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~) -$(RM) $(call ADD_ALL_EXESUFS,mplayer) -$(RM) $(MOFILES) + -$(RM) version.h + -$(RM) codecs.conf.h + -$(RM) input/input_conf.h + -$(RM) libvo/vdpau_template.c + -$(RM) libmpdemux/ebml_types.h libmpdemux/ebml_defs.c + -$(RM) libvo/vo_gl3_shaders.h + -$(RM) sub/osd_font.h distclean: clean -$(RM) -r locale - -$(RM) config.log config.mak config.h codecs.conf.h version.h TAGS tags - -$(RM) libvo/vdpau_template.c - -$(RM) libmpdemux/ebml_types.h libmpdemux/ebml_defs.c + -$(RM) config.log config.mak config.h TAGS tags TAGS: $(RM) $@; find . -name '*.[chS]' -o -name '*.asm' | xargs etags -a -- cgit v1.2.3