1 include $(TOP)/config/make.cfg
3 #MM- aminet-games-think-amichess : aminet-games-think-amichess-program aminet-games-think-amichess-datafiles
5 AMICHESSDIR := $(AROS_CONTRIB)/Games/AmiChess
7 BOARDS := Crystal Default Fire Ice MarbleBrown MarbleGrey \
8 Metal Plasma Redwood Water Wood1 Wood2
9 BOARDDIR := $(AMICHESSDIR)/Boards
10 BOARDSUB := Dark Light
12 BOARDFILES := $(foreach d, $(BOARDSUB), $(foreach f, $(BOARDS), $(BOARDDIR)/$(f)/$(d)))
14 PIECES := Alpha Arlley Chap Default Jumbo Original Rastapov Staunton Tashka
15 PIECESDIR := $(AMICHESSDIR)/Pieces
18 PIECESFILES := $(foreach d, $(PIECESSUB), $(foreach f, $(PIECES), $(PIECESDIR)/$(d)/$(f)))
20 PROMOS := Bishop Knight Queen Rook
21 PROMODIR := $(AMICHESSDIR)/Promote
23 PROMOFILES := $(foreach f, $(PROMOS), $(PROMODIR)/$(f))
25 DOCS := AmiChess.dok AmiChess.readme
26 DOCDIR := $(AMICHESSDIR)
28 DOCFILES := $(foreach f, $(DOCS), $(DOCDIR)/$(f))
30 ICONS := AmiChess AmiChess.dok AmiChess.readme
31 ICONDIR := $(AMICHESSDIR)
33 ICONFILES := $(foreach f, $(ICONS), $(ICONDIR)/$(f).info)
36 aminet-games-think-amichess-datafiles : setup $(BOARDFILES) $(PIECESFILES) $(PROMOFILES) $(DOCFILES) $(ICONFILES)
39 %mkdirs_q $(foreach f, $(BOARDS), $(BOARDDIR)/$(f))
40 %mkdirs_q $(foreach f, $(PIECESSUB), $(PIECESDIR)/$(f))
43 $(BOARDDIR)/%/Dark : Boards/%/Dark setup
46 $(BOARDDIR)/%/Light : Boards/%/Light setup
49 $(PIECESDIR)/1024/% : Pieces/1024/% setup
52 $(PIECESDIR)/800/% : Pieces/800/% setup
55 $(PROMODIR)/% : Promote/% setup
58 $(DOCDIR)/%.readme : %.readme setup
61 $(DOCDIR)/%.dok : %.dok setup
64 $(ICONDIR)/%.info : icons/%.info setup