summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-04-24 20:17:29 +0200
committerChristian Grothoff <christian@grothoff.org>2023-04-24 20:17:29 +0200
commit9cbc189fa1c3416e541b0c3e1637908639aca8ae (patch)
tree1ac8f2952e572ac180483e2908bce642f49c67ff
parentffcf44889d13d9a327cd47a2b1d44691cca21b9e (diff)
downloadmerchant-9cbc189fa1c3416e541b0c3e1637908639aca8ae.tar.gz
merchant-9cbc189fa1c3416e541b0c3e1637908639aca8ae.tar.bz2
merchant-9cbc189fa1c3416e541b0c3e1637908639aca8ae.zip
automatically re-generate Makefile.am to match SPA
-rwxr-xr-xbootstrap11
-rw-r--r--contrib/.gitignore2
-rw-r--r--contrib/Makefile.am40
-rw-r--r--contrib/Makefile.am.in30
4 files changed, 43 insertions, 40 deletions
diff --git a/bootstrap b/bootstrap
index 69e6ad62..bf84c063 100755
--- a/bootstrap
+++ b/bootstrap
@@ -29,5 +29,16 @@ else
echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development"
fi
+# Generate Makefile.am in contrib/
+cd contrib
+rm -f Makefile.am
+find wallet-core/backoffice/ -type f -printf ' %p \\\n' | sort > Makefile.am.ext
+# Remove extra '\' at the end of the file
+truncate -s -2 Makefile.am.ext
+cat Makefile.am.in Makefile.am.ext >> Makefile.am
+# Prevent accidental editing of the generated Makefile.am
+chmod -w Makefile.am
+cd ..
+
echo "$0: Running autoreconf"
autoreconf -if
diff --git a/contrib/.gitignore b/contrib/.gitignore
index 94308bdc..ad4d5ab1 100644
--- a/contrib/.gitignore
+++ b/contrib/.gitignore
@@ -1,2 +1,4 @@
spa.html
*.must
+Makefile.am
+Makefile.am.ext
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
deleted file mode 100644
index b222aa68..00000000
--- a/contrib/Makefile.am
+++ /dev/null
@@ -1,40 +0,0 @@
-tmplpkgdatadir = $(prefix)/share/taler/merchant/templates/
-staticpkgdatadir = $(prefix)/share/taler/merchant/static/
-spapkgdatadir = $(prefix)/share/taler/merchant/spa/
-
-dist_tmplpkgdata_DATA = \
- depleted_tip.en.must \
- offer_refund.en.must \
- offer_tip.en.must \
- request_payment.en.must \
- show_order_details.en.must
-
-%.must: wallet-core/backend/%.html
- cp $< $@
-
-# Note: only works when building from Git, if you
-# run maintainer clean against the TGZ, you will
-# not be able to recover...
-MAINTAINERCLEANFILES = \
- $(dist_tmplpkgdata_DATA)
-
-# Note: historic mechanism for static resource files, currently not used.
-#dist_staticpkgdata_DATA = \
-# foo.css
-
-
-# spa.html is the single-page-app imported from the wallet-core.git
-# prebuilt branch.
-dist_spapkgdata_DATA = \
- wallet-core/backoffice/index.css \
- wallet-core/backoffice/index.css.map \
- wallet-core/backoffice/index.html \
- wallet-core/backoffice/index.js \
- wallet-core/backoffice/index.js.map \
- wallet-core/backoffice/languageicon-LWKRUH5D.svg \
- wallet-core/backoffice/logo-2021-VSZSJ4QZ.svg \
- wallet-core/backoffice/materialdesignicons-webfont-4.9.95-7W2GKO6O.woff2 \
- wallet-core/backoffice/materialdesignicons-webfont-4.9.95-GELXKCZG.ttf \
- wallet-core/backoffice/materialdesignicons-webfont-4.9.95-HENMUVWG.eot \
- wallet-core/backoffice/materialdesignicons-webfont-4.9.95-WP2MXZKI.woff \
- wallet-core/backoffice/XRXV3I6Li01BKofINeaE-34D53UZZ.ttf
diff --git a/contrib/Makefile.am.in b/contrib/Makefile.am.in
new file mode 100644
index 00000000..b2921bd4
--- /dev/null
+++ b/contrib/Makefile.am.in
@@ -0,0 +1,30 @@
+tmplpkgdatadir = $(prefix)/share/taler/merchant/templates/
+staticpkgdatadir = $(prefix)/share/taler/merchant/static/
+spapkgdatadir = $(prefix)/share/taler/merchant/spa/
+
+dist_tmplpkgdata_DATA = \
+ depleted_tip.en.must \
+ offer_refund.en.must \
+ offer_tip.en.must \
+ request_payment.en.must \
+ show_order_details.en.must
+
+%.must: wallet-core/backend/%.html
+ cp $< $@
+
+# Note: only works when building from Git, if you
+# run maintainer clean against the TGZ, you will
+# not be able to recover...
+MAINTAINERCLEANFILES = \
+ $(dist_tmplpkgdata_DATA)
+
+# Note: historic mechanism for static resource files, currently not used.
+#dist_staticpkgdata_DATA = \
+# foo.css
+
+
+# This is for the single-page-app imported from the wallet-core.git
+# prebuilt branch. This MUST be the last line in the
+# Makefile.am.in, as it will be combined with the
+# actual SPA data by 'bootstrap'!
+dist_spapkgdata_DATA = \