1 # Copyright © 2018 Nick Bowler
3 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 # This is free software: you are free to do what the fuck you want to.
5 # There is NO WARRANTY, to the extent permitted by law.
7 ACLOCAL_AMFLAGS = -I m4 -I common/m4
12 MAINTAINERCLEANFILES =
16 AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \
17 -DLOCALEDIR=\"$(localedir)\"
18 AM_CFLAGS = $(LIBGERBV_CFLAGS) $(CNEARTREE_CFLAGS)
20 bin_PROGRAMS = slotifier
22 slotifier_SOURCES = src/slotifier.c
23 slotifier_LDADD = $(LIBGERBV_LIBS) $(CNEARTREE_LIBS) libgnu.la \
24 $(LTLIBICONV) $(LTLIBINTL) $(HYPOT_LIBM)
25 $(slotifier_OBJECTS): $(gnulib_headers)
27 dist_man_MANS = doc/slotifier.1
29 # Supporting rules for gettext.
30 include $(top_srcdir)/common/snippet/gettext.mk
31 noinst_DATA = $(MOFILES)
33 EXTRA_DIST += po/$(PACKAGE).pot
34 MAINTAINERCLEANFILES += po/$(PACKAGE).pot
36 XGETTEXT_OPTS = -D $(builddir) -D $(srcdir) --from-code=utf-8 \
37 --add-comments=TRANSLATORS: --foreign-user \
38 --msgid-bugs-address=$(PACKAGE_BUGREPORT) \
39 --package-version=$(PACKAGE_VERSION) \
40 --package-name=$(PACKAGE) --keyword=_
42 po/$(PACKAGE).pot: $(SOURCES)
43 $(AM_V_at) $(MKDIR_P) $(@D)
44 $(AM_V_GEN) $(XGETTEXT) $(XGETTEXT_OPTS) -o $@.tmp $(SOURCES)
45 $(AM_V_at) mv -f $@.tmp $@
47 include $(top_srcdir)/common/snippet/autotest.mk
48 include $(top_srcdir)/lib/gnulib.mk