~strycore/ubuntu/vivid/gnome-weather/fix-for-1456400

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-12-20 18:32:08 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20141220183208-e2895ntfyv23x1m3
Tags: 3.14.1-0ubuntu1
* New upstream release.
* Fix a typo in watch file
* Change binary to arch: all
* Update d/copyright for this release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
NULL =
2
2
 
3
3
appdir = $(pkgdatadir)
4
 
nodist_app_SCRIPTS = org.gnome.Weather.Application
5
 
 
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
 
5
 
 
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) $<
 
9
 
 
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) $<
9
13
 
10
14
resourcedir = $(pkgdatadir)
11
 
resource_DATA = $(PACKAGE_NAME).src.gresource
12
 
 
13
 
# Legacy, until we can depend on package.js provided by gjs
14
 
jsdir = $(pkgdatadir)
15
 
dist_js_DATA = package.js
 
15
resource_DATA = $(PACKAGE_NAME).Application.src.gresource $(PACKAGE_NAME).BackgroundService.src.gresource
16
16
 
17
17
org.gnome.Weather.Application: org.gnome.Weather.Application.in
18
18
        $(AM_V_GEN) sed \
24
24
                $< > $@
25
25
        @chmod +x $@
26
26
 
 
27
org.gnome.Weather.BackgroundService: org.gnome.Weather.BackgroundService.in
 
28
        $(AM_V_GEN) sed \
 
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" \
 
34
                $< > $@
 
35
        @chmod +x $@
 
36
 
27
37
EXTRA_DIST = \
28
 
        $(PACKAGE_NAME).in \
29
 
        $(PACKAGE_NAME).src.gresource.xml \
30
 
        $(resource_files) \
 
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) \
31
44
        $(NULL)
32
45
 
33
46
CLEANFILES = \
34
 
        $(PACKAGE_NAME) \
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 \
36
51
        $(NULL)
37
52
 
38
53
install-exec-hook:
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)
41
56
uninstall-hook:
42
 
        -rm -f $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
 
57
        -rm -f $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
43
58
 
44
59
-include $(top_srcdir)/git.mk