diff options
-rw-r--r-- | Makefile.am | 11 | ||||
-rw-r--r-- | games/classic/local.mk | 1 | ||||
-rw-r--r-- | games/local.mk | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index e61ee43..4b77625 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,8 +40,6 @@ endif # * Our release target PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION)$(PACKAGE_VERSION_GIT) -gamesdir = $(pkgdatadir)/games - bin_PROGRAMS = dodge-balls dodge_balls_SOURCES = @@ -65,6 +63,7 @@ EXTRA_dodge_balls_DEPENDENCIES = version.c $(DATA) CLEANFILES = version.c $(DATA) CONFIG_CLEAN_FILES = EXTRA_DIST = autogen.sh +uninstall_dirs = version.c: $(wolfutil_OBJECTS) $(wolfutil_DEPENDENCIES) $(AM_V_GEN)printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \ @@ -74,9 +73,9 @@ version.c: $(wolfutil_OBJECTS) $(wolfutil_DEPENDENCIES) $(AM_V_GEN)$(XCF2PNG) -f -o $@ $< uninstall-hook: - for dir in '$(DESTDIR)$(gamesdir)'; do \ - if [ -d "$${dir}" ]; then \ - rmdir "$${dir}"; \ + for dir in $(uninstall_dirs); do \ + if [ -d "$(DESTDIR)$${dir}" ]; then \ + rmdir "$(DESTDIR)$${dir}"; \ fi; \ done @@ -123,3 +122,5 @@ release: include $(top_srcdir)/src/local.mk include $(top_srcdir)/games/local.mk + +uninstall_dirs += $(pkgdatadir) diff --git a/games/classic/local.mk b/games/classic/local.mk index 3bba623..0cb0d63 100644 --- a/games/classic/local.mk +++ b/games/classic/local.mk @@ -1,4 +1,5 @@ games_classicdir = $(gamesdir)/classic +uninstall_dirs += $(games_classicdir) dist_games_classic_DATA = \ %reldir%/game.xml \ diff --git a/games/local.mk b/games/local.mk index 251a014..d7e2374 100644 --- a/games/local.mk +++ b/games/local.mk @@ -1 +1,4 @@ include %reldir%/classic/local.mk + +gamesdir = $(pkgdatadir)/games +uninstall_dirs += $(gamesdir) |