From 49583c9c95ec782942a7e8e7d777c419562b2205 Mon Sep 17 00:00:00 2001 From: "Gergely POLONKAI (W00d5t0ck)" Date: Fri, 6 Sep 2013 16:28:00 +0200 Subject: [PATCH] Now installing (and reading) UI file to (from) $(pkgdatadir) --- src/Makefile.am | 6 ++++++ src/astrognome.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 81912ce..7cbb7fa 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,12 @@ +AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Astrognome\" -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" bin_PROGRAMS = astrognome astrognome_SOURCES = astrognome.c astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS) astrognome_LDFLAGS = -rdynamic astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) -Wall + +guidir = $(pkgdatadir) +gui_DATA = astrognome.ui + +EXTRA_DIST = $(gui_DATA) diff --git a/src/astrognome.c b/src/astrognome.c index c24d7f4..dc50e99 100644 --- a/src/astrognome.c +++ b/src/astrognome.c @@ -3,7 +3,7 @@ #include -#define UI_FILE "/home/polesz/Projektek/c/astrognome/src/astrognome.ui" +#define UI_FILE PKGDATADIR "/astrognome.ui" GtkBuilder *builder;