about summary refs log tree commit diff stats
path: root/Makefile
blob: 5a0147dd345ce4b67b36cb7441ad7624ba6764c5 (plain) (blame)
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
# Alternative GNU Make workspace makefile autogenerated by Premake

ifndef config
  config=release
endif

ifndef verbose
  SILENT = @
endif

ifeq ($(config),release)
  Pong_config = release

else
  $(error "invalid configuration $(config)")
endif

PROJECTS := Pong

.PHONY: all clean help $(PROJECTS) 

all: $(PROJECTS)

Pong:
ifneq (,$(Pong_config))
	@echo "==== Building Pong ($(Pong_config)) ===="
	@${MAKE} --no-print-directory -C . -f Pong.make config=$(Pong_config)
endif

clean:
	@${MAKE} --no-print-directory -C . -f Pong.make clean

help:
	@echo "Usage: make [config=name] [target]"
	@echo ""
	@echo "CONFIGURATIONS:"
	@echo "  release"
	@echo ""
	@echo "TARGETS:"
	@echo "   all (default)"
	@echo "   clean"
	@echo "   Pong"
	@echo ""
	@echo "For more information, see https://github.com/premake/premake-core/wiki"