[gnome-games: 1/3] gnomine: Relayout into src data directories
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games: 1/3] gnomine: Relayout into src data directories
- Date: Sun, 13 Nov 2011 07:00:32 +0000 (UTC)
commit 33e3f30db56ed9dc7399a93427d97eb93be1d011
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Oct 24 22:50:08 2011 -0400
gnomine: Relayout into src data directories
gnomine/data/Makefile.am | 84 ++++++++++++++++++++
gnomine/{ => data}/bang.svg | 0
gnomine/{ => data}/face-cool.svg | 0
gnomine/{ => data}/face-sad.svg | 0
gnomine/{ => data}/face-smile.svg | 0
gnomine/{ => data}/face-win.svg | 0
gnomine/{ => data}/face-worried.svg | 0
gnomine/{ => data}/flag-question.svg | 0
gnomine/{ => data}/flag.svg | 0
gnomine/{ => data}/gnomine.6 | 0
gnomine/{ => data}/gnomine.desktop.in.in | 0
gnomine/{ => data}/mine.svg | 0
.../{ => data}/org.gnome.gnomine.gschema.xml.in | 0
gnomine/{ => data}/warning.svg | 0
gnomine/src/Makefile.am | 84 ++++++++++++++++++++
gnomine/{ => src}/gnomine.c | 0
gnomine/{ => src}/minefield.c | 0
gnomine/{ => src}/minefield.h | 0
18 files changed, 168 insertions(+), 0 deletions(-)
---
diff --git a/gnomine/data/Makefile.am b/gnomine/data/Makefile.am
new file mode 100644
index 0000000..7f79fdf
--- /dev/null
+++ b/gnomine/data/Makefile.am
@@ -0,0 +1,84 @@
+SUBDIRS = data icons src
+
+if BUILD_HELP
+SUBDIRS += help
+endif
+
+bin_PROGRAMS = gnomine
+
+gnomine_SOURCES = \
+ gnomine.c \
+ minefield.h \
+ minefield.c
+
+gnomine_CPPFLAGS = \
+ -I$(top_srcdir) \
+ $(AM_CPPFLAGS)
+
+gnomine_CFLAGS = \
+ $(GTK_CFLAGS) \
+ $(AM_CFLAGS)
+
+gnomine_LDADD = \
+ $(top_builddir)/libgames-support/libgames-support.la \
+ $(GTK_LIBS)
+
+if HAVE_GNOME
+gnomine_CFLAGS += $(GNOME_CFLAGS)
+gnomine_LDADD += $(GNOME_LIBS)
+endif
+
+if HAVE_RSVG
+gnomine_CFLAGS += $(RSVG_CFLAGS)
+gnomine_LDADD += $(RSVG_LIBS)
+endif
+
+if WITH_GTHREAD
+gnomine_CFLAGS += $(GHTREAD_CFLAGS)
+gnomine_LDADD += $(GTHREAD_LIBS)
+endif
+
+gsettings_in_file = org.gnome.gnomine.gschema.xml.in
+gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
+ INTLTOOL_XML_NOMERGE_RULE@
+ GSETTINGS_RULES@
+
+man_MANS = gnomine.6
+
+pixmapdir = $(datadir)/gnome-games/gnomine/pixmaps
+pixmap_DATA = face-cool.svg face-sad.svg face-smile.svg face-win.svg \
+ face-worried.svg \
+ flag.svg flag-question.svg mine.svg bang.svg warning.svg
+
+EXTRA_DIST = README AUTHORS \
+ $(gsettings_in_file) \
+ $(man_MANS) \
+ $(pixmap_DATA)
+
+Gamesdir = $(datadir)/applications
+Games_in_files = gnomine.desktop.in.in
+Games_DATA = $(Games_in_files:.desktop.in.in=.desktop)
+ INTLTOOL_DESKTOP_RULE@
+
+SCOREFILES = Small Medium Large Custom
+
+install-data-local:
+ -$(mkinstalldirs) $(DESTDIR)$(scoredir)
+ ## Change the names of the high score files, unless the local user has
+ ## beaten us to it.
+ -if [ -f $(DESTDIR)$(scoredir)/gnomine.Tiny.scores -a ! -f $(DESTDIR)$(scoredir)/gnomine.Small.scores ]; then mv -f $(DESTDIR)$(scoredir)/gnomine.Tiny.scores $(DESTDIR)$(scoredir)/gnomine.Small.scores ; fi
+ -if [ -f $(DESTDIR)$(scoredir)/gnomine.Biiiig.scores -a ! -f $(DESTDIR)$(scoredir)/gnomine.Large.scores ]; then mv -f $(DESTDIR)$(scoredir)/gnomine.Biiiig.scores $(DESTDIR)$(scoredir)/gnomine.Large.scores ; fi
+ -for i in ${SCOREFILES} ; do \
+ touch $(DESTDIR)$(scoredir)/gnomine.$$i.scores; \
+ chown $(scores_user):$(scores_group) $(DESTDIR)$(scoredir)/gnomine.$$i.scores; \
+ chmod 664 $(DESTDIR)$(scoredir)/gnomine.$$i.scores; \
+ done
+
+install-exec-hook:
+ -if test "$(setgid)" = "true"; then \
+ chgrp $(scores_group) $(DESTDIR)$(bindir)/gnomine && chmod 2555 $(DESTDIR)$(bindir)/gnomine ;\
+ fi
+
+DISTCLEANFILES = $(Games_DATA) $(gsettings_SCHEMAS)
+
+-include $(top_srcdir)/git.mk
diff --git a/gnomine/bang.svg b/gnomine/data/bang.svg
similarity index 100%
rename from gnomine/bang.svg
rename to gnomine/data/bang.svg
diff --git a/gnomine/face-cool.svg b/gnomine/data/face-cool.svg
similarity index 100%
rename from gnomine/face-cool.svg
rename to gnomine/data/face-cool.svg
diff --git a/gnomine/face-sad.svg b/gnomine/data/face-sad.svg
similarity index 100%
rename from gnomine/face-sad.svg
rename to gnomine/data/face-sad.svg
diff --git a/gnomine/face-smile.svg b/gnomine/data/face-smile.svg
similarity index 100%
rename from gnomine/face-smile.svg
rename to gnomine/data/face-smile.svg
diff --git a/gnomine/face-win.svg b/gnomine/data/face-win.svg
similarity index 100%
rename from gnomine/face-win.svg
rename to gnomine/data/face-win.svg
diff --git a/gnomine/face-worried.svg b/gnomine/data/face-worried.svg
similarity index 100%
rename from gnomine/face-worried.svg
rename to gnomine/data/face-worried.svg
diff --git a/gnomine/flag-question.svg b/gnomine/data/flag-question.svg
similarity index 100%
rename from gnomine/flag-question.svg
rename to gnomine/data/flag-question.svg
diff --git a/gnomine/flag.svg b/gnomine/data/flag.svg
similarity index 100%
rename from gnomine/flag.svg
rename to gnomine/data/flag.svg
diff --git a/gnomine/gnomine.6 b/gnomine/data/gnomine.6
similarity index 100%
rename from gnomine/gnomine.6
rename to gnomine/data/gnomine.6
diff --git a/gnomine/gnomine.desktop.in.in b/gnomine/data/gnomine.desktop.in.in
similarity index 100%
rename from gnomine/gnomine.desktop.in.in
rename to gnomine/data/gnomine.desktop.in.in
diff --git a/gnomine/mine.svg b/gnomine/data/mine.svg
similarity index 100%
rename from gnomine/mine.svg
rename to gnomine/data/mine.svg
diff --git a/gnomine/org.gnome.gnomine.gschema.xml.in b/gnomine/data/org.gnome.gnomine.gschema.xml.in
similarity index 100%
rename from gnomine/org.gnome.gnomine.gschema.xml.in
rename to gnomine/data/org.gnome.gnomine.gschema.xml.in
diff --git a/gnomine/warning.svg b/gnomine/data/warning.svg
similarity index 100%
rename from gnomine/warning.svg
rename to gnomine/data/warning.svg
diff --git a/gnomine/src/Makefile.am b/gnomine/src/Makefile.am
new file mode 100644
index 0000000..7f79fdf
--- /dev/null
+++ b/gnomine/src/Makefile.am
@@ -0,0 +1,84 @@
+SUBDIRS = data icons src
+
+if BUILD_HELP
+SUBDIRS += help
+endif
+
+bin_PROGRAMS = gnomine
+
+gnomine_SOURCES = \
+ gnomine.c \
+ minefield.h \
+ minefield.c
+
+gnomine_CPPFLAGS = \
+ -I$(top_srcdir) \
+ $(AM_CPPFLAGS)
+
+gnomine_CFLAGS = \
+ $(GTK_CFLAGS) \
+ $(AM_CFLAGS)
+
+gnomine_LDADD = \
+ $(top_builddir)/libgames-support/libgames-support.la \
+ $(GTK_LIBS)
+
+if HAVE_GNOME
+gnomine_CFLAGS += $(GNOME_CFLAGS)
+gnomine_LDADD += $(GNOME_LIBS)
+endif
+
+if HAVE_RSVG
+gnomine_CFLAGS += $(RSVG_CFLAGS)
+gnomine_LDADD += $(RSVG_LIBS)
+endif
+
+if WITH_GTHREAD
+gnomine_CFLAGS += $(GHTREAD_CFLAGS)
+gnomine_LDADD += $(GTHREAD_LIBS)
+endif
+
+gsettings_in_file = org.gnome.gnomine.gschema.xml.in
+gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
+ INTLTOOL_XML_NOMERGE_RULE@
+ GSETTINGS_RULES@
+
+man_MANS = gnomine.6
+
+pixmapdir = $(datadir)/gnome-games/gnomine/pixmaps
+pixmap_DATA = face-cool.svg face-sad.svg face-smile.svg face-win.svg \
+ face-worried.svg \
+ flag.svg flag-question.svg mine.svg bang.svg warning.svg
+
+EXTRA_DIST = README AUTHORS \
+ $(gsettings_in_file) \
+ $(man_MANS) \
+ $(pixmap_DATA)
+
+Gamesdir = $(datadir)/applications
+Games_in_files = gnomine.desktop.in.in
+Games_DATA = $(Games_in_files:.desktop.in.in=.desktop)
+ INTLTOOL_DESKTOP_RULE@
+
+SCOREFILES = Small Medium Large Custom
+
+install-data-local:
+ -$(mkinstalldirs) $(DESTDIR)$(scoredir)
+ ## Change the names of the high score files, unless the local user has
+ ## beaten us to it.
+ -if [ -f $(DESTDIR)$(scoredir)/gnomine.Tiny.scores -a ! -f $(DESTDIR)$(scoredir)/gnomine.Small.scores ]; then mv -f $(DESTDIR)$(scoredir)/gnomine.Tiny.scores $(DESTDIR)$(scoredir)/gnomine.Small.scores ; fi
+ -if [ -f $(DESTDIR)$(scoredir)/gnomine.Biiiig.scores -a ! -f $(DESTDIR)$(scoredir)/gnomine.Large.scores ]; then mv -f $(DESTDIR)$(scoredir)/gnomine.Biiiig.scores $(DESTDIR)$(scoredir)/gnomine.Large.scores ; fi
+ -for i in ${SCOREFILES} ; do \
+ touch $(DESTDIR)$(scoredir)/gnomine.$$i.scores; \
+ chown $(scores_user):$(scores_group) $(DESTDIR)$(scoredir)/gnomine.$$i.scores; \
+ chmod 664 $(DESTDIR)$(scoredir)/gnomine.$$i.scores; \
+ done
+
+install-exec-hook:
+ -if test "$(setgid)" = "true"; then \
+ chgrp $(scores_group) $(DESTDIR)$(bindir)/gnomine && chmod 2555 $(DESTDIR)$(bindir)/gnomine ;\
+ fi
+
+DISTCLEANFILES = $(Games_DATA) $(gsettings_SCHEMAS)
+
+-include $(top_srcdir)/git.mk
diff --git a/gnomine/gnomine.c b/gnomine/src/gnomine.c
similarity index 100%
rename from gnomine/gnomine.c
rename to gnomine/src/gnomine.c
diff --git a/gnomine/minefield.c b/gnomine/src/minefield.c
similarity index 100%
rename from gnomine/minefield.c
rename to gnomine/src/minefield.c
diff --git a/gnomine/minefield.h b/gnomine/src/minefield.h
similarity index 100%
rename from gnomine/minefield.h
rename to gnomine/src/minefield.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]