3
3
appdir = $(pkgdatadir)
4
nodist_app_SCRIPTS = org.gnome.Weather.Application
6
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/$(PACKAGE_NAME).src.gresource.xml)
7
$(PACKAGE_NAME).src.gresource: $(PACKAGE_NAME).src.gresource.xml $(resource_files)
4
nodist_app_SCRIPTS = org.gnome.Weather.Application org.gnome.Weather.BackgroundService
6
app_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/$(PACKAGE_NAME).Application.src.gresource.xml)
7
$(PACKAGE_NAME).Application.src.gresource: $(PACKAGE_NAME).Application.src.gresource.xml $(app_resource_files)
8
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
10
service_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/$(PACKAGE_NAME).BackgroundService.src.gresource.xml)
11
$(PACKAGE_NAME).BackgroundService.src.gresource: $(PACKAGE_NAME).BackgroundService.src.gresource.xml $(service_resource_files)
8
12
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
10
14
resourcedir = $(pkgdatadir)
11
resource_DATA = $(PACKAGE_NAME).src.gresource
13
# Legacy, until we can depend on package.js provided by gjs
15
dist_js_DATA = package.js
15
resource_DATA = $(PACKAGE_NAME).Application.src.gresource $(PACKAGE_NAME).BackgroundService.src.gresource
17
17
org.gnome.Weather.Application: org.gnome.Weather.Application.in
27
org.gnome.Weather.BackgroundService: org.gnome.Weather.BackgroundService.in
29
-e "s|[@]GJS@|$(GJS)|g" \
30
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
31
-e "s|[@]prefix@|$(prefix)|g" \
32
-e "s|[@]libdir@|$(libdir)|g" \
33
-e "s|[@]pkgdatadir@|$(pkgdatadir)|g" \
29
$(PACKAGE_NAME).src.gresource.xml \
38
$(PACKAGE_NAME).Application.in \
39
$(PACKAGE_NAME).Application.src.gresource.xml \
40
$(PACKAGE_NAME).BackgroundService.in \
41
$(PACKAGE_NAME).BackgroundService.src.gresource.xml \
42
$(app_resource_files) \
43
$(service_resource_files) \
35
$(PACKAGE_NAME).src.gresource \
47
$(PACKAGE_NAME).Application \
48
$(PACKAGE_NAME).Application.src.gresource \
49
$(PACKAGE_NAME).BackgroundService \
50
$(PACKAGE_NAME).BackgroundService.src.gresource \
39
54
$(MKDIR_P) $(DESTDIR)$(bindir)
40
$(LN_S) $(appdir)/$(PACKAGE_NAME) $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
55
$(LN_S) $(appdir)/$(PACKAGE_NAME).Application $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
42
-rm -f $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
57
-rm -f $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
44
59
-include $(top_srcdir)/git.mk