diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-02 15:19:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-02 15:19:22 +0200 |
commit | c145e2778594a3607447ff28a58dbf4a284aece6 (patch) | |
tree | 374ec1bfb7f862e2ba4c0b223efb30ca1287d896 | |
parent | 29c609f30b3dbc4343e3d2a706abc504c850e878 (diff) | |
download | web-common-c145e2778594a3607447ff28a58dbf4a284aece6.tar.gz web-common-c145e2778594a3607447ff28a58dbf4a284aece6.tar.bz2 web-common-c145e2778594a3607447ff28a58dbf4a284aece6.zip |
break Makefile.am up to match subdir structure
-rw-r--r-- | Makefile.am | 10 | ||||
-rw-r--r-- | css/Makefile.am | 5 | ||||
-rw-r--r-- | js/Makefile.am | 40 |
3 files changed, 50 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index 3db8fa7..9f98b6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,8 @@ # This Makefile.am is in the public domain + +SUBDIRS = css js . + EXTRA_DIST = \ - css/bootstrap.min.cs \ - css/taler.css \ - css/taler-fallback.css \ favicon-taler.ico \ js/bootstrap.bundle.min.js \ js/chrome-any.d.ts \ @@ -16,8 +16,8 @@ EXTRA_DIST = \ # Some file may be missing here... pkgdata_DATA = \ - favicon-taler.ico \ - js/taler-wallet-lib.js + favicon-taler.ico + all: js/taler-wallet-lib.min.js js/taler-wallet-lib.js.tar.gz js/taler-wallet-lib.js install: all diff --git a/css/Makefile.am b/css/Makefile.am new file mode 100644 index 0000000..5f7110e --- /dev/null +++ b/css/Makefile.am @@ -0,0 +1,5 @@ +# This Makefile.am is in the public domain +EXTRA_DIST = \ + bootstrap.min.cs \ + taler.css \ + taler-fallback.css diff --git a/js/Makefile.am b/js/Makefile.am new file mode 100644 index 0000000..a3ceede --- /dev/null +++ b/js/Makefile.am @@ -0,0 +1,40 @@ +# This Makefile.am is in the public domain + +EXTRA_DIST = \ + bootstrap.bundle.min.js \ + chrome-any.d.ts \ + taler-wallet-lib.ts \ + bootstrap.min.js \ + taler-wallet-lib.js \ + tsconfig.json + +# Some file may be missing here... +pkgdata_DATA = \ + js/taler-wallet-lib.js + +all: taler-wallet-lib.min.js taler-wallet-lib.js.tar.gz taler-wallet-lib.js +install: all + +%.min.js: %.js + python3 -m jsmin $< > $@ + +%.js.tar.gz: %.js + tar czf $@ $< + +taler-wallet-lib.js: taler-wallet-lib.ts chrome-any.d.ts +if HAVE_TSC + tsc +else + @echo + @if [ ! -f "$@" ] ; then \ + echo "*** Error: typescript compiler 'tsc' is missing," \ + "can't build" $@ ; \ + echo ; \ + exit 1 ; \ + else \ + echo "*** Warning: typescript compiler 'tsc' is missing," \ + "using pre-build" $@ ; \ + touch "$@"; \ + fi + @echo +endif |