~ubuntu-branches/ubuntu/trusty/libgweather/trusty-updates

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
29
30
31
32
33
34
35
36
37
38
libgweatherdtddir = $(pkgdatadir)
libgweatherdtd_DATA = locations.dtd

libgweatherlocationsdir = $(pkgdatadir)
libgweatherlocations_in_files = Locations.xml.in

LOCATIONS_STAMP = stamp-Locations.xml

# Helper variable
libgweatherlocations_DATA = $(libgweatherlocations_in_files:.xml.in=.xml)

# We need this step so that we merge all the make Locations.xy.xml destinations
# into one unique destination. This makes -j2 work. (Else, we end up with
# multiple and conflicting calls to intltool-merge)
$(libgweatherlocations_DATA): $(LOCATIONS_STAMP)

$(LOCATIONS_STAMP): $(libgweatherlocations_in_files) Makefile
	LC_ALL=C $(INTLTOOL_MERGE) --multiple-output --xml-style --utf8 --cache=$(top_builddir)/po-locations/.intltool-merge-cache /dev/null $< $(libgweatherlocations_DATA)  && \
	xmllint --noblanks -o Locations.xml C/$(libgweatherlocations_DATA) && \
	rm -f C/$(libgweatherlocations_DATA) &&				\
 	touch $@

check:
	xmllint --valid --noout $(top_srcdir)/data/Locations.xml.in
	$(srcdir)/check-timezones.sh $(srcdir)/Locations.xml.in

EXTRA_DIST =	\
	$(libgweatherlocations_in_files)	\
	$(libgweatherdtd_DATA)			\
	check-timezones.sh			\
	README					\
	README.timezones

CLEANFILES =	\
	$(libgweatherlocations_DATA)		\
	$(LOCATIONS_STAMP)

-include $(top_srcdir)/git.mk