summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 3e57e6315caf02da0632254e53e90c4b34f8addb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# mumi - Mediocre, uh, mail interface
# Copyright © 2016-2020 Ricardo Wurmus <rekado@elephly.net>
#
# This file is part of mumi.
#
# mumi is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# mumi is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with mumi.  If not, see <http://www.gnu.org/licenses/>.

include guile.am

bin_SCRIPTS =						\
  scripts/mumi

moddir = $(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
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/*)

dist_pkgdata_DATA = etc/schema.sql

SOURCES =							\
  mumi/web/download.scm				\
  mumi/web/server.scm				\
  mumi/web/render.scm				\
  mumi/web/controller.scm			\
  mumi/web/sxml.scm					\
  mumi/web/util.scm					\
  mumi/web/graphql.scm				\
  mumi/web/view/html.scm			\
  mumi/web/view/utils.scm			\
  mumi/cache.scm					\
  mumi/messages.scm					\
  mumi/jobs.scm						\
  mumi/send-email.scm				\
  mumi/client.scm				\
  mumi/config.scm					\
  mumi/debbugs.scm					\
  mumi/test-utils.scm				\
  mumi/xapian.scm

TEST_EXTENSIONS = .scm

SCM_TESTS = \
  tests/client.scm  \
  tests/debbugs.scm \
  tests/xapian.scm

TESTS = $(SCM_TESTS)

EXTRA_DIST += $(TESTS) \
  $(wildcard tests/data/*)

AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0

SCM_LOG_DRIVER =                                          \
  $(GUILE) --no-auto-compile -L $(top_srcdir) -e main     \
      $(top_srcdir)/build-aux/test-driver.scm

AM_SCM_LOG_DRIVER_FLAGS = --brief=yes

PICO_SCSS = $(wildcard assets/pico/scss/*.scss)

assets/css/mumi.css: assets/mumi.scss assets/_theme-switcher.scss $(PICO_SCSS)
	$(SASSC) $< $@

nobase_dist_assets_DATA = \
  assets/css/mumi.css \
  $(assetsjs_DATA) $(assetsimg_DATA)

EXTRA_DIST +=					\
  pre-inst-env.in				\
  build-aux/test-driver.scm     \
  assets/mumi.scss \
  $(PICO_SCSS)