mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-11-09 06:02:41 +05:30
Makefile: extract variable of removed files and directories
This commit is contained in:
parent
68a5a80733
commit
50d4eac253
9
Makefile
9
Makefile
@ -77,11 +77,14 @@ define rmdirs_if_empty
|
||||
done
|
||||
endef
|
||||
|
||||
FILES_TO_REMOVE = $(EXECPATH) $(DEP) $(OBJ)
|
||||
DIRECTORIES_TO_REMOVE = $(BINDIR) $(OBJDIR)
|
||||
|
||||
clean:
|
||||
$(call rmfiles_if_exist,$(EXECPATH) $(DEP) $(OBJ))
|
||||
$(call rmdirs_if_empty,$(BINDIR) $(OBJDIR))
|
||||
$(call rmfiles_if_exist,$(FILES_TO_REMOVE))
|
||||
$(call rmdirs_if_empty,$(DIRECTORIES_TO_REMOVE))
|
||||
|
||||
distclean:
|
||||
$(call rmdirs,$(BINDIR) $(OBJDIR))
|
||||
$(call rmdirs,$(DIRECTORIES_TO_REMOVE))
|
||||
|
||||
.PHONY: all clean distclean
|
||||
|
Loading…
Reference in New Issue
Block a user