mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Add new cleandeps target, to allow easy cleaning out of .d files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74cf81919d
commit
1ddb6b61ea
@ -175,7 +175,7 @@ prdirs::
|
|||||||
# which are marked as Phony.
|
# which are marked as Phony.
|
||||||
#
|
#
|
||||||
.PHONY: all dynamic bytecodelib bytecodelib-install
|
.PHONY: all dynamic bytecodelib bytecodelib-install
|
||||||
.PHONY: clean distclean install test bytecode prdirs
|
.PHONY: clean cleandeps distclean install test bytecode prdirs
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Miscellaneous paths and commands:
|
# Miscellaneous paths and commands:
|
||||||
@ -435,7 +435,7 @@ RObjectsG := $(addprefix $(BUILD_OBJ_DIR)/Debug/,$(RObjs))
|
|||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
|
|
||||||
ifdef DIRS
|
ifdef DIRS
|
||||||
all install clean test bytecode ::
|
all install clean cleandeps test bytecode ::
|
||||||
$(VERB) for dir in ${DIRS}; do \
|
$(VERB) for dir in ${DIRS}; do \
|
||||||
(cd $$dir; $(MAKE) $@) || exit 1; \
|
(cd $$dir; $(MAKE) $@) || exit 1; \
|
||||||
done
|
done
|
||||||
@ -446,16 +446,18 @@ ifdef PARALLEL_DIRS
|
|||||||
all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
|
all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
|
||||||
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
|
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
|
||||||
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
|
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
|
||||||
|
cleandeps:: $(addsuffix /.makecleandeps, $(PARALLEL_DIRS))
|
||||||
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
||||||
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
|
%/.makeall %/.makeinstall %/.makeclean %/.makecleandeps %/.maketest \
|
||||||
|
%/.makebytecode:
|
||||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Handle directories that may or may not exist
|
# Handle directories that may or may not exist
|
||||||
ifdef OPTIONAL_DIRS
|
ifdef OPTIONAL_DIRS
|
||||||
all install clean test bytecode ::
|
all install clean cleandeps test bytecode ::
|
||||||
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||||
if [ -d $$dir ]; \
|
if [ -d $$dir ]; \
|
||||||
then\
|
then\
|
||||||
@ -831,8 +833,14 @@ $(BUILD_OBJ_DIR)/Depend/%.d: $(SourceDir)%.c $(BUILD_OBJ_DIR)/Depend/.dir
|
|||||||
#
|
#
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
ifneq ($(MAKECMDGOALS),distclean)
|
ifneq ($(MAKECMDGOALS),distclean)
|
||||||
|
ifneq ($(MAKECMDGOALS),cleandeps)
|
||||||
ifneq ($(SourceDepend),)
|
ifneq ($(SourceDepend),)
|
||||||
-include $(SourceDepend)
|
-include $(SourceDepend)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
cleandeps::
|
||||||
|
$(VERB) rm -f $(SourceDepend)
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ prdirs::
|
|||||||
# which are marked as Phony.
|
# which are marked as Phony.
|
||||||
#
|
#
|
||||||
.PHONY: all dynamic bytecodelib bytecodelib-install
|
.PHONY: all dynamic bytecodelib bytecodelib-install
|
||||||
.PHONY: clean distclean install test bytecode prdirs
|
.PHONY: clean cleandeps distclean install test bytecode prdirs
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Miscellaneous paths and commands:
|
# Miscellaneous paths and commands:
|
||||||
@ -435,7 +435,7 @@ RObjectsG := $(addprefix $(BUILD_OBJ_DIR)/Debug/,$(RObjs))
|
|||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
|
|
||||||
ifdef DIRS
|
ifdef DIRS
|
||||||
all install clean test bytecode ::
|
all install clean cleandeps test bytecode ::
|
||||||
$(VERB) for dir in ${DIRS}; do \
|
$(VERB) for dir in ${DIRS}; do \
|
||||||
(cd $$dir; $(MAKE) $@) || exit 1; \
|
(cd $$dir; $(MAKE) $@) || exit 1; \
|
||||||
done
|
done
|
||||||
@ -446,16 +446,18 @@ ifdef PARALLEL_DIRS
|
|||||||
all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
|
all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
|
||||||
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
|
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
|
||||||
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
|
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
|
||||||
|
cleandeps:: $(addsuffix /.makecleandeps, $(PARALLEL_DIRS))
|
||||||
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
||||||
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
|
%/.makeall %/.makeinstall %/.makeclean %/.makecleandeps %/.maketest \
|
||||||
|
%/.makebytecode:
|
||||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Handle directories that may or may not exist
|
# Handle directories that may or may not exist
|
||||||
ifdef OPTIONAL_DIRS
|
ifdef OPTIONAL_DIRS
|
||||||
all install clean test bytecode ::
|
all install clean cleandeps test bytecode ::
|
||||||
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||||
if [ -d $$dir ]; \
|
if [ -d $$dir ]; \
|
||||||
then\
|
then\
|
||||||
@ -831,8 +833,14 @@ $(BUILD_OBJ_DIR)/Depend/%.d: $(SourceDir)%.c $(BUILD_OBJ_DIR)/Depend/.dir
|
|||||||
#
|
#
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
ifneq ($(MAKECMDGOALS),distclean)
|
ifneq ($(MAKECMDGOALS),distclean)
|
||||||
|
ifneq ($(MAKECMDGOALS),cleandeps)
|
||||||
ifneq ($(SourceDepend),)
|
ifneq ($(SourceDepend),)
|
||||||
-include $(SourceDepend)
|
-include $(SourceDepend)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
cleandeps::
|
||||||
|
$(VERB) rm -f $(SourceDepend)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user