-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
31 lines (26 loc) · 906 Bytes
/
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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src po
include include.mk
zip-file: all
rm -Rf "$(builddir)/_build"
rm -Rf "$(builddir)/zip-files"
$(MKDIR_P) "$(builddir)/_build"; \
$(MKDIR_P) "$(builddir)/zip-files"; \
$(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
mv "$(builddir)/_build/$(extensiondir)" "$(builddir)/_build"/; \
cp -r "$(builddir)/_build$(datadir)/locale" "$(builddir)/_build/$(uuid)"; \
(cd "$(builddir)/_build/$(uuid)"; \
zip -qr "$(abs_builddir)/zip-files/$(uuid).zip" .; \
); \
rm -Rf $(builddir)/_build
local_prefix = $(HOME)/.local/share/gnome-shell/extensions
local-install: zip-file
zip_file="$(abs_builddir)/zip-files/$(uuid).zip"; \
if [ -d "$(local_prefix)/$(uuid)" ]; then \
rm -Rf "$(local_prefix)/$(uuid)"; \
fi; \
$(MKDIR_P) $(local_prefix)/$(uuid); \
(cd $(local_prefix)/$(uuid); \
unzip -q $${zip_file}; \
);