summaryrefslogtreecommitdiff
path: root/configure
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
commite0c94ac47a4ec4378f1341158d82a6af3ffe4c96 (patch)
treef7a431c84a88cf3a068506c12e0548f454e7718a /configure
parent4320edc924a303ce0cab0000a5f16f045a3822df (diff)
downloadbrowser-extension-e0c94ac47a4ec4378f1341158d82a6af3ffe4c96.tar.gz
browser-extension-e0c94ac47a4ec4378f1341158d82a6af3ffe4c96.zip
Add VPATH and Haketilo version to the makefile as part of configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 4 insertions, 8 deletions
diff --git a/configure b/configure
index 3e12cbb..98d2ec5 100755
--- a/configure
+++ b/configure
@@ -59,17 +59,13 @@ case "${TARGET:-all}" in
*) echo Invalid target "'$1'" >&2; exit 2;;
esac
-# Write record.conf
-echo UPDATE_URL = "$UPDATE_URL" > record.conf
+# Write record.conf (LEAVE SRCDIR FIRST)
+echo srcdir = "$SRCDIR" > record.conf
echo default_target = "$TARGET" >> record.conf
-echo srcdir = "$SRCDIR" >> record.conf
+echo UPDATE_URL = "$UPDATE_URL" >> record.conf
-# Prepare environment for and run write_makefile.sh (as config.status)
-if [ ! -e Makefile.in ]; then
- cp "$SRCDIR"/Makefile.in .
-fi
-
+# Prepare and run write_makefile.sh (as config.status)
if [ ! -e config.status ]; then
cp "$SRCDIR"/write_makefile.sh config.status
fi