-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
49 lines (38 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Quick reference:
# @ silences the line
# - ignores errors on the line
PREFIX = $(DESTDIR)/usr/local
BINDIR = $(PREFIX)/bin
.PHONY: all help install uninstall distclean distclean-real
# Wildcard rule
.DEFAULT:
@$(MAKE) -s -C premake
$(MAKE) -C build $@
all: bin/wxWabbitemu
bin/wxWabbitemu:
@$(MAKE) wxWabbitemu
help:
@$(MAKE) -s -C build help
@echo ""
@echo "ADDITIONAL TARGETS:"
@echo " install"
@echo " uninstall"
@echo " distclean"
install: bin/wxWabbitemu
@echo "Installing wxWabbitemu to: $(BINDIR)"
install bin/wxWabbitemu $(BINDIR)
uninstall:
@echo "Uninstalling wxWabbitemu from: $(BINDIR)"
rm -f $(BINDIR)/wxWabbitemu
clean:
$(MAKE) -C build clean
-if [ -d build/obj ];then rmdir build/obj; fi
-if [ -d bin ]; then rmdir bin; fi
distclean:
@echo "WARNING: Running distclean will require you to regenerate"
@echo "your makefiles with Premake. Only do this if you suspect"
@echo "that the Makefiles are corrupt."
@echo ""
@echo "Run make distclean-real to actually distclean."
distclean-real: clean
$(MAKE) -C premake distclean