Makefile: Distribute all assets.
authorRicardo Wurmus <rekado@elephly.net>
Sat, 29 Feb 2020 07:46:43 +0000 (08:46 +0100)
committerRicardo Wurmus <rekado@elephly.net>
Sat, 29 Feb 2020 07:46:43 +0000 (08:46 +0100)
Makefile.am

index cdf5f37..2a07fae 100644 (file)
@@ -1,5 +1,5 @@
 # mumi - Mediocre, uh, mail interface
-# Copyright © 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
+# Copyright © 2016-2020 Ricardo Wurmus <rekado@elephly.net>
 #
 # This file is part of mumi.
 #
@@ -22,8 +22,16 @@ bin_SCRIPTS =                                                \
   scripts/mumi
 
 moddir = $(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
-godir  = $(moddir)
-assetsdir = $(datadir)/@PACKAGE@
+godir  = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
+
+assetsdir    = $(pkgdatadir)/assets
+assetscssdir = $(assetsdir)/css
+assetsimgdir = $(assetsdir)/img
+assetsjsdir  = $(assetsdir)/js
+
+assetscss_DATA = $(wildcard assets/css/*)
+assetsimg_DATA = $(wildcard assets/img/*)
+assetsjs_DATA  = $(wildcard assets/js/*)
 
 SOURCES =                                                      \
   mumi/web/download.scm                                \