-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
29 lines (24 loc) · 1.09 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
include include.mk
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src po
zip-file: all
-rm -fR $(builddir)/_build
-rm -fR $(builddir)/zip-files
mkdir $(builddir)/_build; \
mkdir $(builddir)/zip-files; \
$(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
cp -r "$(builddir)/_build$(extensiondir)" "$(builddir)/_build/"; \
cp -r "$(builddir)/_build$(datadir)/locale" "$(builddir)/_build/$(uuid)"; \
cp "$(srcdir)/COPYING" -t "$(builddir)/_build/$(uuid)"; \
if [ -f "$(builddir)/_build$(datadir)/glib-2.0/schemas/$(gschemabase).$(extensionname).gschema.xml" ]; then \
mkdir "$(builddir)/_build/$(uuid)/schemas"; \
cp "$(builddir)/_build$(datadir)/glib-2.0/schemas/$(gschemabase).$(extensionname).gschema.xml" "$(builddir)/_build/$(uuid)/schemas"; \
glib-compile-schemas "$(builddir)/_build/$(uuid)/schemas"; \
fi; \
(cd "$(builddir)/_build/$(uuid)"; \
zip -qr "$(abs_builddir)/zip-files/$(uuid).zip" .; \
);
install-zip: zip-file
mkdir -p $(localextensiondir) && unzip -o $(abs_builddir)/zip-files/$(uuid).zip -d $(localextensiondir);
uninstall-zip: Makefile
-rm -fR $(localextensiondir)