mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
* New Recursive Target: clean-all
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a62869b064
commit
3d65949fa1
@ -19,9 +19,9 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Define the various target sets
|
||||
#--------------------------------------------------------------------
|
||||
RecursiveTargets := all clean check install uninstall
|
||||
LocalTargets := all-local clean-local check-local install-local printvars \
|
||||
uninstall-local
|
||||
RecursiveTargets := all clean clean-all check install uninstall
|
||||
LocalTargets := all-local clean-local clean-all-local check-local \
|
||||
install-local printvars uninstall-local
|
||||
TopLevelTargets := dist dist-check dist-clean tags dist-gzip dist-bzip2 \
|
||||
dist-zip
|
||||
UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
|
||||
@ -131,6 +131,7 @@ $(UserTargets):: $(PreConditions)
|
||||
all:: all-local
|
||||
check:: check-local
|
||||
clean:: clean-local
|
||||
clean-all:: clean-local clean-all-local
|
||||
install:: install-local
|
||||
uninstall:: uninstall-local
|
||||
check-local:: all-local
|
||||
@ -373,6 +374,7 @@ SubDirs += $(PARALLEL_DIRS)
|
||||
# recursive targets are added.
|
||||
all :: $(addsuffix /.makeall ,$(PARALLEL_DIRS))
|
||||
clean :: $(addsuffix /.makeclean ,$(PARALLEL_DIRS))
|
||||
clean-all:: $(addsuffix /.makecleanall ,$(PARALLEL_DIRS))
|
||||
check :: $(addsuffix /.makecheck ,$(PARALLEL_DIRS))
|
||||
install :: $(addsuffix /.makeinstall ,$(PARALLEL_DIRS))
|
||||
uninstall:: $(addsuffix /.makeuninstall,$(PARALLEL_DIRS))
|
||||
@ -822,9 +824,11 @@ endif
|
||||
# (f)lex input sources.
|
||||
#---------------------------------------------------------
|
||||
|
||||
LexOutput := $(strip $(subst %.l,%.cpp,$(filter %.l,$(Sources))))
|
||||
LexFiles := $(filter %.l,$(Sources))
|
||||
|
||||
ifneq ($(LexOutput),)
|
||||
ifneq ($(LexFiles),)
|
||||
|
||||
LexOutput := $(strip $(patsubst %.l,%.cpp,$(LexFiles)))
|
||||
|
||||
.PRECIOUS: $(LexOutput)
|
||||
|
||||
@ -843,7 +847,7 @@ ifneq ($(LexOutput),)
|
||||
> $@
|
||||
|
||||
clean-local::
|
||||
$(RM) -f $(LexOutput)
|
||||
$(Verb) $(RM) -f $(LexOutput)
|
||||
|
||||
endif
|
||||
|
||||
@ -852,10 +856,9 @@ endif
|
||||
# from yacc (bison) input sources.
|
||||
#---------------------------------------------------------
|
||||
|
||||
YaccOutput := $(strip $(addprefix $(subst %.y,%,$(filter %.y,$(Sources))),\
|
||||
.h .cpp .output))
|
||||
|
||||
ifneq ($(YaccOutput),)
|
||||
YaccFiles := $(filter %.y,$(Sources))
|
||||
ifneq ($(YaccFiles),)
|
||||
YaccOutput := $(addprefix $(patsubst %.y,%,$(YaccFiles)),.h .cpp .output)
|
||||
|
||||
.PRECIOUS: $(YaccOutput)
|
||||
|
||||
@ -872,7 +875,7 @@ ifneq ($(YaccOutput),)
|
||||
$(Verb) $(MV) -f $*.tab.h $*.h
|
||||
|
||||
clean-local::
|
||||
$(RM) -f $(YaccOutput)
|
||||
$(Verb) $(RM) -f $(YaccOutput)
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
@ -905,6 +908,9 @@ ifneq ($(strip $(SHLIBEXT)),) # Extra paranoia - make real sure SHLIBEXT is set
|
||||
$(Verb) $(RM) -f *$(SHLIBEXT)
|
||||
endif
|
||||
|
||||
clean-all-local::
|
||||
$(Verb) $(RM) -rf Debug Release Profile
|
||||
|
||||
# Build tags database for Emacs/Xemacs:
|
||||
tags:: TAGS
|
||||
TAGS:
|
||||
@ -1168,3 +1174,5 @@ printvars::
|
||||
$(Echo) "Compile.CXX : " '$(Compile.CXX)'
|
||||
$(Echo) "Compile.C : " '$(Compile.C)'
|
||||
$(Echo) "Archive : " '$(Archive)'
|
||||
$(Echo) "YaccFiles : " '$(YaccFiles)'
|
||||
$(Echo) "LexFiles : " '$(LexFiles)'
|
||||
|
Loading…
Reference in New Issue
Block a user