summaryrefslogtreecommitdiff
path: root/aliases/Makefile
blob: ab4a720157d6b8c55dd242154ea1be3ed51e8dea (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)/, \
		$(subst /,_,$(addprefix $(DIR),makealiases)))

DISTCLEAN_ITEMS := $(DISTCLEAN_ITEMS) $(aliases)

# Target for building aliases file
$(aliases): $(makealiases) $(addprefix $(DIR)data/, $(aliases_DATA))
	$(VQ)$(ECHO) $(ECHOFLAGS) " ALIASES: $@"
	$(Q)$(makealiases) $(wordlist 2,$(words $^),$^) $@

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

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

include build/makefiles/Makefile.subdir