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

Makefile: improve clean rule

remove on clean:
--config.o
--revision.o
--$(OUTPUT).vhd
--$(OUTPUT).mif
--$(OUTPUT)_disasm.S
--include/config
--include/generated
--tools/dump-info-host.bin

arch/lm32/ram.ld is not removed
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 8509a41e
......@@ -8,7 +8,6 @@
*~
*_disasm.S
*.vhd
*.cmd
*.o
.tmp_*
......
#!/bin/sh
# 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)
TW=$(mktemp /tmp/save-dotconfig-wrpc.XXXXXX)
......@@ -30,7 +30,12 @@ rm -rf $size_info_file
for c in $configs; do
echo "##### Building with '$c'"
make -s clean; rm -f ppsi/.config
if ! make -s clean; then
echo "Error while cleaning (see $T)"
exit 1
fi
rm -f ppsi/.config
if ! make $c 2>&1 >> $T; then
echo "Error in configuration (see $T)"
exit 1
......
......@@ -187,8 +187,11 @@ config.o: .config
$(AUTOCONF): silentoldconfig
clean:
rm -f $(OBJS) $(OUTPUT).elf $(OUTPUT).bin $(OUTPUT).bram \
$(LDS) rules-*.bin
rm -f $(OBJS) $(OUTPUT).o config.o revision.o $(OUTPUT).elf $(LDS) \
$(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 sdb-lib clean
$(MAKE) -C tools clean
......
ppsi @ 67efec3c
Subproject commit 6be2d811aa3b6123f75fb3cbc8937e920cff5d98
Subproject commit 67efec3c7c7f6eac4495fb6d12598e4aca179fb8
......@@ -60,5 +60,5 @@ dump-info-host.o: ../dump-info.o
../dump-info.o: ../dump-info.c
$(MAKE) -C .. dump-info.o
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