зеркало из https://github.com/mozilla/gecko-dev.git
cleansrcdir should use the distclean target if possible
This commit is contained in:
Родитель
cbb04dbb0b
Коммит
4e647d4614
13
client.mk
13
client.mk
|
@ -406,21 +406,18 @@ install export clean realclean distclean:: $(OBJDIR)/Makefile $(OBJDIR)/config.s
|
|||
|
||||
cleansrcdir:
|
||||
@cd $(TOPSRCDIR); \
|
||||
if [ -f Makefile ]; then \
|
||||
$(MAKE) realclean && _skip_find=1; \
|
||||
fi; \
|
||||
if [ -f webshell/embed/gtk/Makefile ]; then \
|
||||
$(MAKE) -C webshell/embed/gtk distclean; \
|
||||
fi; \
|
||||
if [ ! "$$_skip_find" ]; then \
|
||||
if [ -f Makefile ]; then \
|
||||
$(MAKE) distclean ; \
|
||||
else \
|
||||
echo "Removing object files from srcdir..."; \
|
||||
rm -fr `find . -type d \( -name .deps -print -o -name CVS \
|
||||
-o -exec test ! -d {}/CVS \; \) -prune \
|
||||
-o \( -name '*.[ao]' -o -name '*.so' \) -type f -print`; \
|
||||
fi; \
|
||||
echo "Removing files generated by configure..."; \
|
||||
build/autoconf/clean-config.sh;
|
||||
|
||||
build/autoconf/clean-config.sh; \
|
||||
fi;
|
||||
|
||||
# (! IS_FIRST_CHECKOUT)
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче