summaryrefslogtreecommitdiff
path: root/serialized/Makefile
blob: 04a560df5bc3b6659b1eaaecaea5d224b1f4bbeb (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
26
27
28

MESSAGE_SOURCES=$(wildcard ../languages/messages/Messages*.php)
MESSAGE_TARGETS=$(patsubst ../languages/messages/Messages%.php, Messages%.ser, $(MESSAGE_SOURCES))
SPECIAL_TARGETS=Utf8Case.ser
ALL_TARGETS=$(MESSAGE_TARGETS) $(SPECIAL_TARGETS)
DIST_TARGETS=$(SPECIAL_TARGETS) \
	     MessagesDe.ser \
	     MessagesEn.ser \
	     MessagesFr.ser \
	     MessagesJa.ser \
	     MessagesNl.ser \
	     MessagesPl.ser \
	     MessagesSv.ser

.PHONY: all dist clean

all: $(ALL_TARGETS)

dist: $(DIST_TARGETS)

clean:
	rm -f $(ALL_TARGETS)

Utf8Case.ser : ../includes/Utf8Case.php
	php serialize.php -o $@ $<

Messages%.ser : ../languages/messages/Messages%.php ../languages/messages/MessagesEn.php
	php serialize-localisation.php -o $@ $<