mirror of
https://github.com/buserror/mii_emu.git
synced 2025-02-15 23:32:53 +00:00
Tweaked Makefile
Nothing functional Signed-off-by: Michel Pollet <buserror@gmail.com>
This commit is contained in:
parent
683dbe6314
commit
bf6cb9eb77
8
Makefile
8
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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user