summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--fonts/UbuntuTitling-Bold.ttfbin0 -> 55460 bytes
-rw-r--r--fonts/local.mk20
3 files changed, 23 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1fed884..ca58a81 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,7 +53,8 @@ dodge_balls_CPPFLAGS = \
$(ZLIB_CFLAGS) \
$(EXPAT_CFLAGS) \
-DABS_BUILDDIR=\"$(abs_builddir)\" \
- -DGAMESDIR=\"$(gamesdir)\"
+ -DGAMESDIR=\"$(gamesdir)\" \
+ -DFONTSDIR=\"$(fontsdir)\"
dodge_balls_LDADD = \
$(ASAN_CFLAGS) \
$(SDL_LIBS) \
@@ -125,5 +126,6 @@ release:
include $(top_srcdir)/src/local.mk
include $(top_srcdir)/games/local.mk
+include $(top_srcdir)/fonts/local.mk
uninstall_dirs += $(pkgdatadir)
diff --git a/fonts/UbuntuTitling-Bold.ttf b/fonts/UbuntuTitling-Bold.ttf
new file mode 100644
index 0000000..53585e5
--- /dev/null
+++ b/fonts/UbuntuTitling-Bold.ttf
Binary files differ
diff --git a/fonts/local.mk b/fonts/local.mk
new file mode 100644
index 0000000..8326296
--- /dev/null
+++ b/fonts/local.mk
@@ -0,0 +1,20 @@
+fontsdir = $(pkgdatadir)/fonts
+uninstall_dirs += $(fontsdir)
+
+dist_fonts_DATA = \
+ %reldir%/UbuntuTitling-Bold.ttf
+
+if OUT_OF_TREE
+CLEANFILES += \
+ $(dist_fonts_DATA)
+endif
+
+# To run in place, the engine needs game data in the build directory, which may
+# be different from the source directory.
+$(dist_fonts_DATA): %reldir%/$(am__dirstamp)
+ $(AM_V_GEN)[ x"$(srcdir)" = x"$(builddir)" ] || \
+ $(LN_S) "$(abs_srcdir)/$@" "$@"
+CONFIG_CLEAN_FILES += %reldir%/$(am__dirstamp)
+%reldir%/$(am__dirstamp):
+ @$(MKDIR_P) %reldir%
+ @: > %reldir%/$(am__dirstamp)