Commit 5d784730 authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

Makefile: improve clean rule

remove on clean:

arch/lm32/ram.ld is not removed
Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent 8509a41e
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
*~ *~
*_disasm.S *_disasm.S
*.vhd *.vhd
*.cmd *.cmd
*.o *.o
.tmp_* .tmp_*
#!/bin/sh #!/bin/sh
# A trivial script to build with all known configurations # A trivial script to build with all known configurations
# (please add a file in confifs/ to test your special case) # (please add a file in configs/*_defconfig to test your special case)
T=$(mktemp /tmp/wrpc-config.XXXXXX) T=$(mktemp /tmp/wrpc-config.XXXXXX)
TW=$(mktemp /tmp/save-dotconfig-wrpc.XXXXXX) TW=$(mktemp /tmp/save-dotconfig-wrpc.XXXXXX)
...@@ -30,7 +30,12 @@ rm -rf $size_info_file ...@@ -30,7 +30,12 @@ rm -rf $size_info_file
for c in $configs; do for c in $configs; do
echo "##### Building with '$c'" echo "##### Building with '$c'"
make -s clean; rm -f ppsi/.config if ! make -s clean; then
echo "Error while cleaning (see $T)"
exit 1
rm -f ppsi/.config
if ! make $c 2>&1 >> $T; then if ! make $c 2>&1 >> $T; then
echo "Error in configuration (see $T)" echo "Error in configuration (see $T)"
exit 1 exit 1
...@@ -187,8 +187,11 @@ config.o: .config ...@@ -187,8 +187,11 @@ config.o: .config
$(AUTOCONF): silentoldconfig $(AUTOCONF): silentoldconfig
clean: clean:
rm -f $(OBJS) $(OUTPUT).elf $(OUTPUT).bin $(OUTPUT).bram \ rm -f $(OBJS) $(OUTPUT).o config.o revision.o $(OUTPUT).elf $(LDS) \
$(LDS) rules-*.bin $(OUTPUT).bin rules-*.bin \
$(OUTPUT).bram $(OUTPUT).vhd $(OUTPUT).mif $(OUTPUT)_disasm.S
rm -rf include/config
rm -rf include/generated
$(MAKE) -C $(PPSI) clean $(MAKE) -C $(PPSI) clean
$(MAKE) -C sdb-lib clean $(MAKE) -C sdb-lib clean
$(MAKE) -C tools clean $(MAKE) -C tools clean
ppsi @ 67efec3c
Subproject commit 6be2d811aa3b6123f75fb3cbc8937e920cff5d98 Subproject commit 67efec3c7c7f6eac4495fb6d12598e4aca179fb8
...@@ -60,5 +60,5 @@ dump-info-host.o: ../dump-info.o ...@@ -60,5 +60,5 @@ dump-info-host.o: ../dump-info.o
../dump-info.o: ../dump-info.c ../dump-info.o: ../dump-info.c
$(MAKE) -C .. dump-info.o $(MAKE) -C .. dump-info.o
clean: clean:
rm -f $(ALL) *.o *~ rm -f $(ALL) *.o *~ dump-info-host.bin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment