-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathMakefile.am
65 lines (51 loc) · 1.47 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
64
65
## Process this file with automake to produce Makefile.in
APP_ID = cpufreq@konkor
packagedir = gnome-shell/extensions
DIST_SUBDIRS = data schemas common fonts
SUBDIRS = data schemas common fonts
jsdir = $(datadir)/$(packagedir)/$(APP_ID)
js_DATA = \
README.md \
INSTALL.md \
BACKERS.md \
convenience.js \
extension.js \
prefs.js \
metadata.json \
stylesheet.css \
konkor.cpufreq.policy \
LICENSE
js_SCRIPTS = cpufreq-application \
cpufreq-preferences \
cpufreq-service \
cpufreq-indicator \
cpufreqctl
bin_SCRIPTS = cpufreq-application \
cpufreq-preferences \
cpufreq-service \
cpufreq-indicator
dist_js_DATA = $(js_SCRIPTS)
dist_doc_DATA = \
README.md \
INSTALL.md \
BACKERS.md
policydir=/usr/share/polkit-1/actions
policy_DATA = konkor.cpufreq.policy
helperdir=/usr/bin
helper_SCRIPTS = cpufreqctl
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/"; \
mkdir -p "$(builddir)/_build/$(APP_ID)/fonts"; \
cp "$(builddir)/_build$(datadir)/fonts/truetype/cpufreq/cpufreq.ttf" "$(builddir)/_build/$(APP_ID)/fonts"; \
(cd "$(builddir)/_build/$(APP_ID)"; \
zip -qr "../../zip-files/$(APP_ID).zip" .; \
);
-rm -fR $(builddir)/_build