comparison Makefile @ 29152:97ab4928cd4d

Extend ADD_ALL_EXESUFS to work with a list of files instead of a single one.
author diego
date Sun, 19 Apr 2009 15:16:04 +0000
parents 364bf97ea97f
children 6a38cc6d7b26
comparison
equal deleted inserted replaced
29151:364bf97ea97f 29152:97ab4928cd4d
951 rm -f $(prefix)/share/pixmaps/mplayer.xpm 951 rm -f $(prefix)/share/pixmaps/mplayer.xpm
952 rm -f $(prefix)/share/applications/mplayer.desktop 952 rm -f $(prefix)/share/applications/mplayer.desktop
953 rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1 953 rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1
954 rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man))) 954 rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man)))
955 955
956 ADD_ALL_EXESUFS = $(foreach exesuf,$(EXESUFS_ALL),$(1) $(1)$(exesuf)) 956 ADD_ALL_EXESUFS = $(foreach file,$(1),$(foreach exesuf,$(EXESUFS_ALL),$(file) $(file)$(exesuf)))
957 957
958 clean: 958 clean:
959 -rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir)))) 959 -rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir))))
960 -rm -f $(foreach file,mplayer mencoder,$(call ADD_ALL_EXESUFS,$(file))) 960 -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
961 961
962 distclean: clean testsclean toolsclean driversclean dhahelperclean dhahelperwinclean 962 distclean: clean testsclean toolsclean driversclean dhahelperclean dhahelperwinclean
963 -rm -rf DOCS/tech/doxygen 963 -rm -rf DOCS/tech/doxygen
964 -rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir)))) 964 -rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
965 -rm -f configure.log config.mak config.h codecs.conf.h help_mp.h \ 965 -rm -f configure.log config.mak config.h codecs.conf.h help_mp.h \
966 version.h $(VIDIX_PCI_FILES) TAGS tags 966 version.h $(VIDIX_PCI_FILES) TAGS tags
967 -rm -f $(foreach file,codec-cfg cpuinfo,$(call ADD_ALL_EXESUFS,$(file))) 967 -rm -f $(call ADD_ALL_EXESUFS,codec-cfg cpuinfo)
968 968
969 doxygen: 969 doxygen:
970 doxygen DOCS/tech/Doxyfile 970 doxygen DOCS/tech/Doxyfile
971 971
972 TAGS: 972 TAGS:
1006 endif 1006 endif
1007 1007
1008 tests: $(addsuffix $(EXESUF),$(TESTS)) 1008 tests: $(addsuffix $(EXESUF),$(TESTS))
1009 1009
1010 testsclean: 1010 testsclean:
1011 -rm -f $(foreach file,$(TESTS),$(call ADD_ALL_EXESUFS,$(file))) 1011 -rm -f $(call ADD_ALL_EXESUFS,$(TESTS))
1012 1012
1013 TOOLS = $(addprefix TOOLS/,alaw-gen asfinfo avi-fix avisubdump compare dump_mp4 movinfo netstream subrip vivodump) 1013 TOOLS = $(addprefix TOOLS/,alaw-gen asfinfo avi-fix avisubdump compare dump_mp4 movinfo netstream subrip vivodump)
1014 1014
1015 ifdef ARCH_X86 1015 ifdef ARCH_X86
1016 TOOLS += TOOLS/fastmemcpybench TOOLS/modify_reg 1016 TOOLS += TOOLS/fastmemcpybench TOOLS/modify_reg