From 9178d4ecf5eac7e60263b2b612771b2a2e9248ae Mon Sep 17 00:00:00 2001 From: neauoire Date: Fri, 11 Aug 2023 08:34:30 -0700 Subject: [PATCH] (makefile) Ordered the targets --- makefile | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/makefile b/makefile index 040152a..d44c39f 100644 --- a/makefile +++ b/makefile @@ -14,6 +14,18 @@ dest: mkdir -p bin rom: ./bin/uxnasm etc/polycat.tal bin/polycat.rom +run: uxnasm uxncli uxn11 rom + ./bin/uxn11 bin/polycat.rom +test: uxnasm uxncli uxn11 + ./bin/uxnasm && ./bin/uxncli && ./bin/uxn11 && ./bin/uxnasm -v && ./bin/uxncli -v && ./bin/uxn11 -v +install: uxnasm uxncli uxn11 + cp bin/uxn11 bin/uxnasm bin/uxncli ~/bin/ +uninstall: + rm -f ~/bin/uxn11 ~/bin/uxnasm ~/bin/uxncli +format: + clang-format -i src/uxnasm.c src/uxncli.c src/uxn11.c src/devices/* +clean: + rm -f bin/uxnasm bin/uxncli bin/uxn11 bin/polycat.rom bin/polycat.rom.sym uxnasm: src/uxnasm.c cc ${RELEASE_flags} src/uxnasm.c -o bin/uxnasm @@ -28,16 +40,3 @@ uxncli-debug: ${CLI_src} src/uxncli.c gcc ${DEBUG_flags} ${CLI_src} src/uxncli.c -o bin/uxncli uxn11-debug: ${EMU_src} src/uxn11.c gcc ${DEBUG_flags} ${EMU_src} src/uxn11.c -lX11 -o bin/uxn11 - -run: uxnasm uxncli uxn11 rom - ./bin/uxn11 bin/polycat.rom -test: uxnasm uxncli uxn11 - ./bin/uxnasm && ./bin/uxncli && ./bin/uxn11 && ./bin/uxnasm -v && ./bin/uxncli -v && ./bin/uxn11 -v -install: uxnasm uxncli uxn11 - cp bin/uxn11 bin/uxnasm bin/uxncli ~/bin/ -uninstall: - rm -f ~/bin/uxn11 ~/bin/uxnasm ~/bin/uxncli -format: - clang-format -i src/uxnasm.c src/uxncli.c src/uxn11.c src/devices/* -clean: - rm -f bin/uxnasm bin/uxncli bin/uxn11 bin/polycat.rom bin/polycat.rom.sym