Newer
Older
c-interpreter / mk / clean-rule.mk
Nomura Kei on 3 Jun 2023 416 bytes first commit
# ------------------------------------------------------------------------------
#  clean ルール
# ------------------------------------------------------------------------------
.PHONY: clean
clean:
	@for subdir in $(SUBDIRS); do	\
		$(MAKE) clean -C $$subdir;	\
	done
ifneq ($(strip $(CLEAN_FILES)),)
	$(RM) -f $(CLEAN_FILES)
endif
ifneq ($(strip $(CLEAN_DIRS)),)
	$(RM) -rf $(addprefix ./,$(CLEAN_DIRS))
endif