summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2009-02-05 19:21:55 +0100
committerSegher Boessenkool <segher@kernel.crashing.org>2009-02-05 19:21:55 +0100
commit3c0a1ab258ef0d2fb03cfa8b42fa47a591138187 (patch)
treeb28549f152b96d502821e403a056ea398fda1207 /Makefile
parentd6ba811594307a9baba071e062327b241d1abae2 (diff)
Some cleanups for the Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f61889a..f3e001c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ LDFLAGS := -g
PLATFORM := sdl
# Default targets.
+.PHONY: all
all: un-disas uuu-$(PLATFORM)
# The disassembler.
@@ -27,18 +28,21 @@ is-osx = $(shell set -e; \
ifeq ($(is-osx),yes)
uuu-sdl: dialog-cocoa.o
-all: bundle
+all: .stamp-bundle
-bundle: uuu-sdl
+.PHONY: .stamp-bundle
+.stamp-bundle: uuu-sdl
-mkdir -p Unununium.app/Contents/Resources/ROMs
-mkdir -p Unununium.app/Contents/MacOS
cp uuu-sdl Unununium.app/Contents/MacOS/
+ touch $@
endif
# Laziness rules, and lazy rules rule most of all.
*.o: *.h
# Clean up.
+.PHONY: clean
clean:
rm -f un-disas un-disas.o disas.o emu.o video.o audio.o io.o
rm -f uuu-sdl uuu-sdl.o platform-sdl.o dialog-cocoa.o