summaryrefslogtreecommitdiff
path: root/aliases/Makefile
blob: 2251de278de4ec608c972ffde815c2615b223742 (plain)
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
makealiases_SRCS := makealiases.c

aliases_DATA := aliases-top character-sets aliases-bottom

aliases := $(CURDIR)/riscos/!Boot/Resources/!Unicode/Files/Aliases

makealiases := $(addprefix $(BUILDDIR)/$(DIR), makealiases)

DISTCLEAN_ITEMS := $(DISTCLEAN_ITEMS) $(aliases)

.PHONY: aliases

# Target for building aliases file
aliases: $(makealiases) $(addprefix $(DIR)data/, $(aliases_DATA))
	@$(makealiases) $(wordlist 2,$(words $^),$^) $(aliases)

# Target for building makealiases binary
$(makealiases): $(addprefix $(DIR), $(makealiases_SRCS))
	@$(HOST_CC) $(HOST_CCFLAGS) -o $@ $^

ifeq ($(MAKECMDGOALS),riscos-dist)
  POST_TARGETS := $(POST_TARGETS) aliases
endif

include build/makefiles/Makefile.subdir