summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 07f36b29041619596c625323e1dbade73263d96c (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
SUBDIRS = man
bin_PROGRAMS = xhost

xhost_SOURCES = xhost.c

AM_CFLAGS = $(CWARNFLAGS) $(XHOST_CFLAGS) $(XAU_CFLAGS)
xhost_LDADD = $(XHOST_LIBS)

MAINTAINERCLEANFILES = ChangeLog INSTALL

.PHONY: ChangeLog INSTALL

INSTALL:
	$(INSTALL_CMD)

ChangeLog:
	$(CHANGELOG_CMD)

dist-hook: ChangeLog INSTALL

EXTRA_DIST = README.md

if USE_GETTEXT
AM_CPPFLAGS = -DLOCALEDIR='"$(LOCALEDIR)"'

noinst_DATA = xhost.po

xhost.po: $(xhost_SOURCES:%=$(srcdir)/%)
	$(AM_V_GEN)xgettext -d xhost -n $(xhost_SOURCES:%=$(srcdir)/%)

CLEANFILES = xhost.po
endif