X-Git-Url: http://git.draconx.ca/gitweb/slotifier.git/blobdiff_plain/6c4afefc2add5eeb0f220c7b6d0ac766bea272f5..2ca6ea042102243aa6977634ddb8651c262ec965:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 3d9b938..607865d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,10 +20,11 @@ AM_CFLAGS = $(LIBGERBV_CFLAGS) $(CNEARTREE_CFLAGS) bin_PROGRAMS = slotifier -slotifier_SOURCES = src/slotifier.c +slotifier_SOURCES = src/slotifier.c src/options.h slotifier_LDADD = $(LIBGERBV_LIBS) $(CNEARTREE_LIBS) libgnu.a \ $(LTLIBICONV) $(LTLIBINTL) $(HYPOT_LIBM) $(slotifier_OBJECTS): $(gnulib_headers) +$(slotifier_OBJECTS): src/options.h dist_man_MANS = doc/slotifier.1 @@ -78,6 +79,14 @@ distcheck-hook: echo ' *** Remember to update NEWS before preparing a release.'; \ $(TEST_DISTRIBUTION_OR_ERROR); } >&2 +OPTFILES = src/options.opt +.opt.h: + $(AM_V_GEN) $(AWK) -f $(DX_BASEDIR)/scripts/gen-options.awk $< >$@.tmp + $(AM_V_at) mv -f $@.tmp $@ +$(OPTFILES:.opt=.h): $(DX_BASEDIR)/scripts/gen-options.awk +MAINTAINERCLEANFILES += $(OPTFILES:.opt=.h) +EXTRA_DIST += $(DX_BASEDIR)/scripts/gen-options.awk $(OPTFILES) + # Supporting rules for gettext. include $(top_srcdir)/common/snippet/gettext.mk noinst_DATA = $(MOFILES) @@ -89,7 +98,8 @@ XGETTEXT_OPTS = -D $(builddir) -D $(srcdir) --from-code=utf-8 \ --add-comments=TRANSLATORS: --foreign-user \ --msgid-bugs-address=$(PACKAGE_BUGREPORT) \ --package-version=$(PACKAGE_VERSION) \ - --package-name=$(PACKAGE) --keyword=_ + --package-name=$(PACKAGE) --keyword=_ \ + --keyword=N_ --keyword=PN_:1c,2 po/$(PACKAGE).pot: $(SOURCES) $(AM_V_at) $(MKDIR_P) $(@D)