This repository has been archived on 2024-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
hedera/main/Makefile.am

47 lines
1.0 KiB
Makefile

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)