Now installing (and reading) UI file to (from) $(pkgdatadir)

This commit is contained in:
Gergely Polonkai 2013-09-06 16:28:00 +02:00
parent 6595f0f961
commit 49583c9c95
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -3,7 +3,7 @@
#include <swe-glib.h>
#define UI_FILE "/home/polesz/Projektek/c/astrognome/src/astrognome.ui"
#define UI_FILE PKGDATADIR "/astrognome.ui"
GtkBuilder *builder;