From: Clifford Wolf Date: Wed, 12 Aug 2015 14:54:30 +0000 (+0200) Subject: Fixed "make clean" for out-of-tree builds X-Git-Tag: yosys-0.6~198^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc20b1c3d210ff1821d6c56fb0b8c9c6ba625aa5;p=yosys.git Fixed "make clean" for out-of-tree builds --- diff --git a/Makefile b/Makefile index 3fb9c5703..6585ca39f 100644 --- a/Makefile +++ b/Makefile @@ -397,7 +397,7 @@ manual: $(TARGETS) $(EXTRA_TARGETS) clean: rm -rf share - cd manual && bash clean.sh + if test -d manual; then cd manual && sh clean.sh; fi rm -f $(OBJS) $(GENFILES) $(TARGETS) $(EXTRA_TARGETS) $(EXTRA_OBJS) rm -f kernel/version_*.o kernel/version_*.cc abc/abc-[0-9a-f]* rm -f libs/*/*.d frontends/*/*.d passes/*/*.d backends/*/*.d kernel/*.d techlibs/*/*.d