summaryrefslogtreecommitdiff
path: root/wikipedia/Makefile.am
blob: 5cb2c94495e1b3f344b86c83a1e4774034e9fef1 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
## Process this file with automake to produce Makefile.in

# Copyright 2013 Endless Mobile, Inc.

## -----------
## Makefile.am
## -----------
## Please keep this file well-commented.

# Subdirectories where we also want to run make
SUBDIRS = po

# Our Autoconf macros are kept in the m4/ directory
ACLOCAL_AMFLAGS = -I m4

# Generated files that 'make clean' should erase
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =

# # # BUILD RULES # # #

resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/data --generate-dependencies $(srcdir)/data/endless_brazil.gresource.xml)
data/endless_brazil.gresource: data/endless_brazil.gresource.xml $(resource_files)
	$(AM_V_GEN) $(MKDIR_P) $(builddir)/data && \
	$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data  $<
CLEANFILES += data/endless_brazil.gresource

eos-brazil: Makefile
	echo "gjs $(pkgdatadir)/src/endless_brazil.js" >$@
CLEANFILES += eos-brazil

# # # INSTALL RULES # # #

js_sources = \
	src/endless_brazil.js \
	src/endless_wikipedia/EndlessWikipedia.js \
	src/endless_wikipedia/PrebuiltWikipediaApplication.js \
	$(NULL)
nobase_pkgdata_DATA = \
	data/endless_brazil.gresource \
	$(js_sources) \
	$(NULL)
bin_SCRIPTS = eos-brazil

EXTRA_DIST += \
	$(js_sources) \
	$(resource_files) \
	data/endless_brazil.gresource.xml \
	$(NULL)

# # # TESTS # # #