History

build: Only clean the architecture subdirectory we build for.

This allows simplifying the Makefiles; it is no longer necessary to register arch subdirectory Makefiles, just putting them in place is enough.

Diego Biurrun committed 14 years ago

Commit e7e19b11 parent 6a7c5316 files · +3 −13Browse files

Unified · Split

6 files
  1. Makefile +1 −1
  2. libavcodec/Makefile +0 −2
  3. libavfilter/Makefile +0 −2
  4. libavutil/Makefile +0 −2
  5. library.mak +2 −4
  6. libswscale/Makefile +0 −2
Makefile+1−1
@@ -98,7 +98,7 @@ config.h: .config · 97 unmodified lines
9898 @-printf '\nWARNING: $(?F) newer than config.h, rerun configure\n\n'
9999 @-tput sgr0 2>/dev/null
100100
101−SUBDIR_VARS := CLEANFILES DIRS EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS \
101+SUBDIR_VARS := CLEANFILES EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS \
102102 ARCH_HEADERS BUILT_HEADERS SKIPHEADERS \
103103 ALTIVEC-OBJS ARMV6-OBJS MMX-OBJS NEON-OBJS YASM-OBJS \
104104 OBJS TESTOBJS
libavcodec/Makefile+0−2
@@ -709,8 +709,6 @@ HOSTPROGS = aac_tablegen aacps_tablegen cbrt_tablegen cos_tablegen \ · 708 unmodified lines
709709 dv_tablegen motionpixels_tablegen mpegaudio_tablegen \
710710 pcm_tablegen qdm2_tablegen sinewin_tablegen
711711
712−DIRS = alpha arm avr32 bfin mips ppc sh4 sparc x86
713−
714712 CLEANFILES = *_tables.c *_tables.h *_tablegen$(HOSTEXESUF)
715713
716714 $(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o
libavfilter/Makefile+0−2
@@ -69,6 +69,4 @@ OBJS-$(CONFIG_TESTSRC_FILTER) += vsrc_testsrc.o · 68 unmodified lines
6969
7070 OBJS-$(CONFIG_NULLSINK_FILTER) += vsink_nullsink.o
7171
72−DIRS = x86
73−
7472 TOOLS = graph2dot lavfi-showfiltfmts
libavutil/Makefile+0−2
@@ -78,6 +78,4 @@ OBJS-$(ARCH_X86) += x86/cpu.o · 77 unmodified lines
7878 TESTPROGS = adler32 aes avstring base64 cpu crc des eval fifo lfg lls \
7979 md5 opt parseutils sha tree
8080
81−DIRS = arm avr32 bfin mips ppc sh4 tomi x86
82−
8381 ARCH_HEADERS = bswap.h intmath.h intreadwrite.h timer.h
library.mak+2−4
@@ -47,12 +47,10 @@ $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver $(DEP_LIBS) · 46 unmodified lines
4747
4848 clean::
4949 $(RM) $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
50− $(foreach dir,$(DIRS),$(CLEANSUFFIXES:%=$(SUBDIR)$(dir)/%)) \
51− $(HOSTOBJS) $(HOSTPROGS)
50+ $(CLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) $(HOSTOBJS) $(HOSTPROGS)
5251
5352 distclean:: clean
54− $(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) \
55− $(foreach dir,$(DIRS),$(DISTCLEANSUFFIXES:%=$(SUBDIR)$(dir)/%))
53+ $(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) $(DISTCLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%)
5654
5755 install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
5856 $(Q)mkdir -p "$(SHLIBDIR)"
libswscale/Makefile+0−2
@@ -29,5 +29,3 @@ MMX-OBJS-$(HAVE_YASM) += x86/input.o \ · 28 unmodified lines
2929 OBJS-$(CONFIG_XMM_CLOBBER_TEST) += x86/w64xmmtest.o
3030
3131 TESTPROGS = colorspace swscale
32−
33−DIRS = bfin ppc sparc x86

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t