-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.am
64 lines (50 loc) · 1.48 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
59
60
61
62
63
## Process this file with automake to produce Makefile.in
EXTENSION_ID = obmin
packagedir = gnome-shell/extensions
DIST_SUBDIRS = man data schemas po common plugins
SUBDIRS = man data schemas po common plugins
jsdir = $(datadir)/$(packagedir)/$(EXTENSION_ID)@konkor
js_DATA = \
README.md \
INSTALL.md \
extension.js \
prefs.js \
convenience.js \
metadata.json \
stylesheet.css \
config_sample.json
js_SCRIPTS = obmin-server \
obmin-preferences \
obmin-indicator \
obmin-center \
obmin-extensions
bin_SCRIPTS = obmin-server \
obmin-preferences \
obmin-indicator \
obmin-center \
obmin-extensions
dist_js_DATA = $(js_SCRIPTS)
dist_doc_DATA = \
README.md \
config_sample.json
EXTRA_DIST = $(js_DATA) metadata.json.in
uninstall-local:
-rm -r $(jsdir)
zip-file: all
-rm -fR $(builddir)/_build
-rm -fR $(builddir)/zip-files
$(MKDIR_P) $(builddir)/_build; \
$(MKDIR_P) $(builddir)/zip-files; \
$(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
mv "$(builddir)/_build/$(jsdir)" "$(builddir)/_build/"; \
cp -r "$(builddir)/_build$(datadir)/locale" "$(builddir)/_build/$(EXTENSION_ID)@konkor"; \
(cd "$(builddir)/_build/$(EXTENSION_ID)@konkor"; \
zip -qr "../../zip-files/$(EXTENSION_ID)@konkor.zip" .; \
);
-rm -fR $(builddir)/_build
release: zip-file
-cp -f $(builddir)/zip-files/$(EXTENSION_ID)@konkor.zip $(builddir)/releases/$(EXTENSION_ID)@konkor.zip
$(MAKE) dist; \
(cd "$(builddir)/packaging"; \
./packaging.sh --release; \
);