aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-10-14 00:00:00 +0000
committerjahoti <jahoti@tilde.team>2021-10-14 00:00:00 +0000
commitef5ae6490afa35f79dd830e3c84fa8ab5e623a2e (patch)
tree647fc8a86e27ff58d32e60be3a5438efa0df3ebe
parentee53045fb37bbd80cef4c899dff6b077df5260d6 (diff)
downloadbrowser-extension-ef5ae6490afa35f79dd830e3c84fa8ab5e623a2e.tar.gz
browser-extension-ef5ae6490afa35f79dd830e3c84fa8ab5e623a2e.zip
Adjust makefile targets
Rename some files used in building and remove redundant aliases
-rw-r--r--Makefile.in25
-rwxr-xr-xbuild.sh2
-rwxr-xr-xconfigure5
3 files changed, 13 insertions, 19 deletions
diff --git a/Makefile.in b/Makefile.in
index 67f2c9c..411879e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -26,9 +26,7 @@ metafiles = build.sh configure Makefile.in process_html_file.sh README.txt \
# The default target: placed up here
default: $(default_target)
-.PHONY: mozilla chromium \
- all build_all build_all.zip all_zip \
- default build zip \
+.PHONY: mozilla chromium all all-unpacked default unpacked \
install install-html install-dvi install-pdf install-ps uninstall \
install-strip clean distclean mostlyclean maintainer-clean TAGS info \
dvi html pdf ps dist check installcheck installdirs
@@ -40,25 +38,22 @@ icons/haketilo16.png: icons/haketilo.svg
# browser-specific targets
all: mozilla chromium
-mozilla: build_mozilla build_mozilla.zip
-chromium: build_chromium build_chromium.zip
+mozilla: mozilla-build.zip
+chromium: chromium-build.zip
-build: build_$(default_target)/
-build_all/: build_mozilla/ build_chromium/
-
-zip: build_$(default_target).zip
-build_all.zip all_zip: build_mozilla.zip build_chromium.zip
-
-build_% build_%/: $(extension_files) icons/haketilo16.png
+unpacked: $(default_target)-unpacked
+all-unpacked: mozilla-unpacked chromium-unpacked
+%-unpacked: $(extension_files) icons/haketilo16.png
$(srcdir)/build.sh $* $(srcdir) $(UPDATE_URL)
-build_%.zip: build_%/
+%-build.zip: %-unpacked
cd $< && zip -q -r ../$@ *
# helper targets
clean mostlyclean:
- rm -rf build_mozilla build_chromium haketilo-$(version)
- rm -f build_mozilla.zip build_chromium.zip haketilo-$(version).tar.gz
+ rm -rf mozilla-unpacked chromium-unpacked haketilo-$(version)
+ rm -f mozilla-build.zip chromium-build.zip haketilo-$(version).tar.gz \
+ haketilo-$(version).tar
distclean: clean
rm -f Makefile config.status record.conf
diff --git a/build.sh b/build.sh
index 97d9c6e..80978e9 100755
--- a/build.sh
+++ b/build.sh
@@ -305,7 +305,7 @@ main() {
SRCDIR="${2:-.}"
if [ -d "$SRCDIR" ]; then
- BUILDDIR="$(realpath build_$BROWSER)"
+ BUILDDIR="$(realpath $BROWSER-unpacked)"
rm -rf "$BUILDDIR"
mkdir "$BUILDDIR"
cd "$SRCDIR"
diff --git a/configure b/configure
index 98d2ec5..4e5c038 100755
--- a/configure
+++ b/configure
@@ -26,7 +26,7 @@ while [ "x$1" != x ]; do
"UPDATE_URL"=*) UPDATE_URL="$(echo "$1" | cut -c 12-)";;
--host=*) TARGET="$(echo "$1" | cut -c 8-)";;
--host) TARGET="$2"; shift;;
- mozilla | chromium | all) TARGET=$1;;
+ mozilla | chromium) TARGET=$1;;
*) echo Ignoring option "'$1'";;
esac
shift
@@ -52,10 +52,9 @@ fi
# TODO: automate target detection
# Standardize and check browser names
-case "${TARGET:-all}" in
+case "$TARGET" in
mozilla) TARGET=mozilla;;
chromium) TARGET=chromium;;
- all) TARGET=all;;
*) echo Invalid target "'$1'" >&2; exit 2;;
esac