summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: ec7d6c1b872cec81058e3d8fefa726d43cad82c3 (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
# disfluid, implementation of the Solid specification
# Copyright (C) 2020, 2021  Vivien Kraus

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.

# This program 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 Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

lib_LTLIBRARIES =
noinst_LTLIBRARIES =
noinst_PROGRAMS =
EXTRA_DIST =
BUILT_SOURCES =
DISTCHECK_CONFIGURE_FLAGS = CONFIG_SHELL=$(CONFIG_SHELL) SHELL=$(SHELL) \
  --enable-indent-check=yes
SUFFIXES =
SUBDIRS = . po man
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I. -I$(srcdir)
AM_CFLAGS = $(GUILE_CFLAGS) $(NETTLE_CFLAGS)
nodist_noinst_SCRIPTS = pre-inst-env
dist_bin_SCRIPTS =
libexec_SCRIPTS =
INDENTED =
include_HEADERS =

include src/Makefile.am
include doc/Makefile.am
include tests/Makefile.am
include icons.am
include settings.am

EXTRA_DIST += $(top_srcdir)/.version $(top_srcdir)/.release-date
BUILT_SOURCES += $(top_srcdir)/.version $(top_srcdir)/.release-date
$(top_srcdir)/.version:
	echo $(VERSION) > $@-t
	@mv $@-t $@
$(top_srcdir)/.release-date:
	echo $(RELEASE_DATE) > $@-t
	@mv $@-t $@
dist-hook:
	echo $(VERSION) > $(distdir)/.tarball-version
	echo $(RELEASE_DATE) > $(distdir)/.tarball-release-date

.PHONY: check-indented

check-indented: $(INDENTED)
	for source in $(INDENTED) ; do \
	  echo "Checking that $$source is indented..." ; \
	  (mkdir -p $$(dirname $$source-indented) \
	   && $(INDENT) $(srcdir)/$$source -o $$source-indented \
	   && cmp $(srcdir)/$$source $$source-indented \
	   && rm -f $$source-indented) \
	  || exit 1 ; \
	done

if INDENT_CHECK_ENABLED
check-local: check-indented
endif

clean-local:
	rm -rf xdg-cache-home