summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-01 23:21:55 +0200
committerwm4 <wm4@nowhere>2012-08-01 23:25:52 +0200
commita87084c841a2bf35a7cb87a38533fefb070d7f9b (patch)
tree55bd0410151e6435987e2e6e07b84dfdce8a1316 /Makefile
parent4b8fa8a5973536606f1a7c782dd0b5ce08333ef7 (diff)
downloadmpv-a87084c841a2bf35a7cb87a38533fefb070d7f9b.tar.bz2
mpv-a87084c841a2bf35a7cb87a38533fefb070d7f9b.tar.xz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
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