1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

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.
This commit is contained in:
wm4 2012-08-01 23:21:55 +02:00
parent 4b8fa8a597
commit a87084c841

View File

@ -639,12 +639,17 @@ clean:
-$(RM) $(call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~) -$(RM) $(call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~)
-$(RM) $(call ADD_ALL_EXESUFS,mplayer) -$(RM) $(call ADD_ALL_EXESUFS,mplayer)
-$(RM) $(MOFILES) -$(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 distclean: clean
-$(RM) -r locale -$(RM) -r locale
-$(RM) config.log config.mak config.h codecs.conf.h version.h TAGS tags -$(RM) config.log config.mak config.h TAGS tags
-$(RM) libvo/vdpau_template.c
-$(RM) libmpdemux/ebml_types.h libmpdemux/ebml_defs.c
TAGS: TAGS:
$(RM) $@; find . -name '*.[chS]' -o -name '*.asm' | xargs etags -a $(RM) $@; find . -name '*.[chS]' -o -name '*.asm' | xargs etags -a