Build: Only look at SUBDIRS with Makefiles

If a directory is renamed or deleted before 'make clean', git will
delete the Makefile but leave all of the object and dependency files
around.  When make would try to recurse into that directory from the
wildcard, it would error out since there is no Makefile.
This commit is contained in:
joshua stein 2020-02-25 11:21:28 -06:00 committed by Andreas Kling
parent a17e702eba
commit 0d2bfe5c65
Notes: sideshowbarker 2024-07-19 09:03:55 +09:00
7 changed files with 7 additions and 7 deletions

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir

View file

@ -1,3 +1,3 @@
SUBDIRS := $(wildcard */.)
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
include ../Makefile.subdir