-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
executable file
·41 lines (33 loc) · 1.01 KB
/
Makefile
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
# The name of the extension.
extension_name := gnome-keyring-integration
# The UUID of the extension.
extension_uuid := [email protected]
# The zip application to be used.
ZIP := zip
# The target location of the build and build files.
bin_dir := ./bin
# The target XPI file.
xpi_file := $(bin_dir)/$(extension_name).xpi
# This builds the extension XPI file.
.PHONY: all
all: $(xpi_file)
@echo
@echo "Build finished successfully."
@echo
# This cleans all temporary files and directories created by 'make'.
.PHONY: clean
clean:
@rm -rf $(bin_dir)
@echo "Cleanup is done."
# The sources for the XPI file.
xpi_built := install.rdf \
chrome.manifest \
$(wildcard chrome/skin/hicolor/*.*) \
$(wildcard components/*.*) \
$(wildcard content/*.*) \
$(wildcard defaults/preferences/*.*)
$(xpi_file): $(xpi_built) Makefile
@echo "Creating XPI file."
@mkdir -p $(bin_dir)
@$(ZIP) $(xpi_file) $(xpi_built)
@echo "Creating XPI file. Done!"