mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-28 16:10:58 +05:30
Makefile: extract variable of removed files and directories
This commit is contained in:
parent
f4726c1d27
commit
f0169f57e6
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