mirror of
https://github.com/irssi/irssi.git
synced 2024-08-25 04:04:18 -04:00
Fixes issues when building from other directories when the source tree was already configured before, as found in the comments of PR #375
40 lines
1014 B
Makefile
40 lines
1014 B
Makefile
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
# create default-config.h
|
|
BUILT_SOURCES = default-config.h default-theme.h irssi-version.h
|
|
CLEANFILES = default-config.h default-theme.h
|
|
|
|
@MAINTAINER_MODE_TRUE@.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:
|
|
VERSION="$(VERSION)" $(srcdir)/irssi-version.sh $(srcdir) | \
|
|
cmp -s - $@ || VERSION="$(VERSION)" $(srcdir)/irssi-version.sh $(srcdir) >$@
|
|
|
|
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 \
|
|
README.md \
|
|
file2header.sh \
|
|
$(conf_DATA) \
|
|
$(theme_DATA) \
|
|
irssi-config.in \
|
|
irssi-icon.png \
|
|
irssi-version.sh \
|
|
syntax.pl
|