From bf6cb9eb775edc4bb83440ee74b9a6fce7da264c Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Sun, 8 Sep 2024 07:12:52 +0100 Subject: [PATCH] Tweaked Makefile Nothing functional Signed-off-by: Michel Pollet --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 72806dc..2838260 100644 --- a/Makefile +++ b/Makefile @@ -123,17 +123,18 @@ test/asm/%.bin : test/asm/%.asm | $(BIN)/mii_asm .PHONY : roms define rom_to_h $(1) : - if [ ! -f $$@ ]; then \ + @if [ ! -f $$@ ]; then \ echo "ROM file $$@ not found, relying on the exiting .h"; \ touch $$@; \ fi src/roms/$(2).h : $(1) - if [ ! -s "$$<" ]; then \ + @if [ ! -s "$$<" ]; then \ touch $$@; \ else { echo "#pragma once"; \ xxd -n $$(shell basename $$<|sed 's/_[0-9].*//') -i $$< |\ sed 's/unsigned/static const unsigned/' ; \ }>$$@ ; \ + echo "ROM $$@ Generated"; \ fi $(OBJ)/mii.o : src/roms/$(2).h @@ -159,6 +160,7 @@ $(eval $(call rom_to_h,test/asm/mii_smartport_driver.bin,mii_rom_smartport)) clean : rm -rf $(O); make -C libmui clean; make -C libmish clean +.PHONY : watch tests # This is for development purpose. This will recompile the project # everytime a file is modified. watch : @@ -229,6 +231,8 @@ lsp: DESTDIR := /usr/local +.PHONY : install avail + install: mkdir -p $(DESTDIR)/bin cp $(BIN)/mii_emu_gl $(DESTDIR)/bin/