Improve make clean
authorAnton Blanchard <anton@linux.ibm.com>
Tue, 19 May 2020 05:32:04 +0000 (15:32 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Tue, 19 May 2020 05:32:04 +0000 (15:32 +1000)
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
Makefile.synth

index 19a96b8004e06ecf1eaf4b9c78b5191f70589c47..f7bdc5bef02c567a97ea389fc180092e43492e6e 100644 (file)
@@ -81,7 +81,8 @@ prog: microwatt.svf
        $(OPENOCD) -f $(OPENOCD_JTAG_CONFIG) -f $(OPENOCD_DEVICE_CONFIG) -c "transport select jtag; init; svf $<; exit"
 
 clean:
-       @rm -f work-obj08.cf *.bit *.json *.svf *.config
+       @rm -f work-obj08.cf *.bit *.json *.svf *.config microwatt.v microwatt-verilator
+       @rm -rf obj_dir/
 
 .PHONY: clean prog
 .PRECIOUS: microwatt.json microwatt_out.config microwatt.bit