include $(top_srcdir)/Makefile.decl hedera_bin_PROGRAMS = hedera-bin AM_CPPFLAGS = \ -I$(top_srcdir) \ $(gtk_CFLAGS) \ -D_HEDERA_LOCALE_DIR=\"$(datadir)/locale\" hedera_bin_LDFLAGS = -Wl,--export-dynamic hedera_bin_SOURCES = main.c hedera_bin_LDADD = \ $(gtk_LIBS) \ $(top_builddir)/gvn/libgvn.la \ $(top_builddir)/db/libdb.la \ $(top_builddir)/vn/libvn.la SCRIPT = $(top_srcdir)/main/hedera.sh.in hedera_bin_SCRIPTS = hedera $(hedera_bin_SCRIPTS): $(SCRIPT) $(SED) -e 's,[@]bindir[@],$(bindir),g' $(SCRIPT) > $(hedera_bin_SCRIPTS) chmod +x $(hedera_bin_SCRIPTS) pkgconfig_DATA = hedera.pc desktop_DATA = vn-hedera.desktop HOST=verdnatura.es certdir = $(datadir)/ca-certificates/$(HOST) cert_DATA = cacert.pem syscertdir = $(sysconfdir)/ssl/certs man_MANS = hedera.1 EXTRA_DIST = \ $(SCRIPT) \ hedera.pc.in DISTCLEANFILES = \ $(hedera_bin_SCRIPTS) \ hedera.pc \ vn-hedera.desktop install-data-hook: mkdir -p $(DESTDIR)$(syscertdir) (cd $(DESTDIR)$(syscertdir) && \ $(LN_S) -f $(DESTDIR)$(certdir)/$(cert_DATA) $(HOST).pem)