]> git.draconx.ca Git - slotifier.git/blob - Makefile.am
Add configure test for slot support in libgerbv.
[slotifier.git] / Makefile.am
1 # Copyright © 2018 Nick Bowler
2 #
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.
6
7 ACLOCAL_AMFLAGS = -I m4 -I common/m4
8
9 CLEANFILES =
10 DISTCLEANFILES =
11 MOSTLYCLEANFILES =
12 MAINTAINERCLEANFILES =
13 noinst_LTLIBRARIES =
14 EXTRA_DIST =
15
16 AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \
17               -DLOCALEDIR=\"$(localedir)\"
18 AM_CFLAGS = $(LIBGERBV_CFLAGS) $(CNEARTREE_CFLAGS)
19
20 bin_PROGRAMS = slotifier
21
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)
26
27 dist_man_MANS = doc/slotifier.1
28
29 # Supporting rules for gettext.
30 include $(top_srcdir)/common/snippet/gettext.mk
31 noinst_DATA = $(MOFILES)
32
33 EXTRA_DIST += po/$(PACKAGE).pot
34 MAINTAINERCLEANFILES += po/$(PACKAGE).pot
35
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=_
41
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 $@
46
47 include $(top_srcdir)/common/snippet/autotest.mk
48 include $(top_srcdir)/lib/gnulib.mk