-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
58 lines (38 loc) · 1.03 KB
/
Makefile.am
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
53
54
55
56
57
58
# ./Makefile.am
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
@APPLICATION_ID@.desktop \
@APPLICATION_ID@_daemon.desktop \
@PACKAGE@.spec.in \
@PACKAGE@.xml \
bootstrap \
po/README \
README.md \
ui
SUBDIRS = src po
# .desktop entry
desktopdir = $(datadir)/applications
desktop_DATA = \
$(APPLICATION_ID).desktop \
$(APPLICATION_ID)_daemon.desktop
# .gresource file
RESOURCES_XML = $(srcdir)/@PACKAGE@.xml
RESOURCES_ARCHIVE = @PACKAGE@.gresource
resourcesdir = $(datadir)/@PACKAGE@
resources_DATA = $(RESOURCES_ARCHIVE)
CLEANFILES = $(RESOURCES_ARCHIVE)
resources_DEPS = $(shell $(GLIB_COMPILE_RESOURCES) \
--sourcedir=$(srcdir) \
--generate-dependencies \
$(RESOURCES_XML))
$(RESOURCES_ARCHIVE): $(RESOURCES_XML) $(resources_DEPS)
$(GLIB_COMPILE_RESOURCES) $< \
--target=$@ \
--sourcedir=$(srcdir) \
--generate
.PHONY: rpm
RPM_TARBALL_NAME = $(HOME)/rpmbuild/SOURCES/$(TARBALL_NAME)
rpm: @PACKAGE@.spec dist-gzip
[ -e $(RPM_TARBALL_NAME) ] || \
$(LN_S) $(PWD)/$(TARBALL_NAME) $(RPM_TARBALL_NAME)
rpmbuild -ba $<