summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-10-13 00:00:00 +0000
committerjahoti <jahoti@tilde.team>2021-10-13 00:00:00 +0000
commit564cb260f6718f6d55ea1b61e60dcacc6d4ad305 (patch)
treef1f496a828d7adf58eee257fbbc68c8cb489ae9c
parente0c94ac47a4ec4378f1341158d82a6af3ffe4c96 (diff)
downloadbrowser-extension-564cb260f6718f6d55ea1b61e60dcacc6d4ad305.tar.gz
browser-extension-564cb260f6718f6d55ea1b61e60dcacc6d4ad305.zip
Tidy up Makefile
Add file prerequisites and some other minor changes
-rw-r--r--Makefile.in19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in
index 7a0e0e5..0a02a79 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -13,7 +13,11 @@
SHELL = /bin/sh
VPATH = <<VPATH>>
-VERSION = <<VERSION>>
+
+version = <<VERSION>>
+extension_files = background/ common/ content/ html/ licenses/ copyright \
+ icons/haketilo16.png icons/haketilo32.png icons/haketilo48.png \
+ icons/haketilo64.png icons/haketilo128.png
# Configuration goes here
@@ -28,17 +32,16 @@ all: mozilla chromium
mozilla: build_mozilla build_mozilla.zip
chromium: build_chromium build_chromium.zip
-build: build_$(default_target)
-build_all: build_mozilla build_chromium
+build: build_$(default_target)/
+build_all/: build_mozilla/ build_chromium/
zip: build_$(default_target).zip
-all_zip: build_mozilla.zip build_chromium.zip
-build_all.zip: all_zip
+build_all.zip all_zip: build_mozilla.zip build_chromium.zip
-build_%:
+build_% build_%/: $(extension_files)
$(srcdir)/build.sh $* $(srcdir) $(UPDATE_URL)
-build_%.zip: build_%
+build_%.zip: build_%/
cd $< && zip -q -r ../$@ *
clean:
@@ -52,5 +55,5 @@ distclean: clean
Makefile: config.status Makefile.in record.conf
./config.status
-config.status: record.conf
+config.status: write_makefile.sh
cp "$(srcdir)"/write_makefile.sh config.status