summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--src/Gui/Makefile.am29
-rw-r--r--src/Makefile.am2
3 files changed, 37 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 003621db..d5ed3cee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,12 @@ AC_PROG_LIBTOOL
AC_PROG_CXX
+AM_PATH_PYTHON
+if test -z "$PYTHON"; then
+ echo "*** Essential program python not found" 1>&2
+ exit 1
+fi
+
PKG_CHECK_MODULES([DBUS_GLIB], [dbus-glib-1])
PKG_CHECK_MODULES([SQLITE3], [sqlite3])
PKG_CHECK_MODULES([GTK], [gtk+-2.0])
@@ -45,6 +51,7 @@ AC_CONFIG_FILES([
src/Daemon/Makefile
src/Hooks/Makefile
src/Applet/Makefile
+ src/Gui/Makefile
])
AC_OUTPUT \ No newline at end of file
diff --git a/src/Gui/Makefile.am b/src/Gui/Makefile.am
new file mode 100644
index 00000000..020bb1f8
--- /dev/null
+++ b/src/Gui/Makefile.am
@@ -0,0 +1,29 @@
+#SUBDIRS=gui tui plugins tests conf
+
+#bin_SCRIPTS = mainwindow.py
+
+PYTHON_FILES = CCDBusBackend.py CCDumpList.py CCDump.py CC_gui_functions.py ccgui.glade CCReporterDialog.py
+
+GLADE_FILES = ccgui.glade
+
+EXTRA_DIST = $(PYTHON_FILES) $(GLADE_FILES)
+
+ccguidir = $(pkgdatadir)
+ccgui_PYTHON = $(PYTHON_FILES)
+ccgui_DATA = $(GLADE_FILES)
+
+execdir = $(sbindir)
+
+CLEANFILES := $(notdir $(wildcard *~)) $(notdir $(wildcard *\#)) $(notdir $(wildcard \.\#*)) $(notdir $(wildcard *.pyc))
+
+check-local:
+ @for i in $(notdir $(wildcard *.py)); do echo $(PYTHON_FILES)|grep -q $$i || (echo $$i is missing;false) || exit 1;done && echo "Source file check PASSED"
+install-exec-local:
+ mkdir -p $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
+ install -m 0755 $(srcdir)/mainwindow.py $(DESTDIR)$(pkgdatadir)
+ ln -fs $(pkgdatadir)/mainwindow.py $(DESTDIR)$(bindir)/crash-catcher-gui
+uninstall-local:
+ rm -fr $(DESTDIR)$(pkgdatadir)
+ rm -f $(DESTDIR)$(bindir)/crash-catcher-gui
+
+ \ No newline at end of file
diff --git a/src/Makefile.am b/src/Makefile.am
index e653c2a8..00269758 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1 +1 @@
-SUBDIRS = Hooks Daemon Applet \ No newline at end of file
+SUBDIRS = Hooks Daemon Applet Gui \ No newline at end of file