Makefile 934 Bytes
Newer Older
1 2
# Top-level Makefile for the Debian Web pages

Laura Arjona Reina's avatar
Laura Arjona Reina committed
3
LANGUAGES := english albanian arabic armenian bulgarian catalan chinese croatian czech \
4
             danish dutch esperanto finnish french galician german greek hebrew \
Josip Rodin's avatar
Josip Rodin committed
5
             hungarian indonesian italian japanese korean lithuanian \
6
             norwegian persian polish portuguese romanian russian slovak slovene \
Rhonda D'Vine's avatar
Rhonda D'Vine committed
7
             spanish swedish tamil turkish ukrainian vietnamese
8

Josip Rodin's avatar
Josip Rodin committed
9
LANGUAGES-install := $(addsuffix -install,$(LANGUAGES))
10
LANGUAGES-clean := $(addsuffix -clean,$(LANGUAGES))
11

12
.SUFFIXES: 
13
.PHONY: install all clean $(LANGUAGES) $(LANGUAGES-install) $(LANGUAGES-clean) list-languages
14

15 16
all: $(LANGUAGES)

Josip Rodin's avatar
Josip Rodin committed
17
install: $(LANGUAGES-install)
18
clean: $(LANGUAGES-clean)
19
	rm -fr locale
20

Josip Rodin's avatar
Josip Rodin committed
21 22
$(LANGUAGES-install):
	$(MAKE) -C $(subst -install,,$@) install
23

24 25 26
$(LANGUAGES-clean):
	$(MAKE) -C $(subst -clean,,$@) clean

Josip Rodin's avatar
Josip Rodin committed
27 28
$(LANGUAGES):
	$(MAKE) -C $@
29 30 31

list-languages:
	@echo $(LANGUAGES)