summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: d8b54d72c8de40020cbf63c9c0b1c5c68295f74d (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
ACLOCAL_AMFLAGS = -I .

# create default-config.h
BUILT_SOURCES = default-config.h default-theme.h irssi-version.h

.PHONY: irssi-version.h

default-config.h: $(srcdir)/irssi.conf
	$(srcdir)/file2header.sh $(srcdir)/irssi.conf default_config > default-config.h
default-theme.h: $(srcdir)/default.theme
	$(srcdir)/file2header.sh $(srcdir)/default.theme default_theme > default-theme.h
irssi-version.h:
	$(srcdir)/irssi-version.sh $(srcdir) > $@.tmp
	cmp -s $@.tmp $@ || mv $@.tmp $@
	rm -f $@.tmp

SUBDIRS = src docs scripts

confdir = $(sysconfdir)
conf_DATA = irssi.conf

themedir = $(datadir)/irssi/themes
theme_DATA = default.theme colorless.theme

pkginclude_HEADERS = irssi-config.h irssi-version.h

EXTRA_DIST = \
	ChangeLog \
	autogen.sh \
	curses.m4 \
	README \
	file2header.sh \
	$(conf_DATA) \
	$(theme_DATA) \
	irssi-config.in \
	irssi-icon.png \
	irssi-version.sh \
	syntax.pl