1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 06:05:45 +01:00

Configure: Use automake's conditional to handle icon installation

The previous method was to use a custom install procedure, which
is a bit complex when automake can handle this for us, and as a
side effect it made 'distcheck' fail on uninstall procedure check.

The new method is to use a simple conditional and autoconf/automake
will do all the work for us.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-09 13:49:23 +02:00
committed by Carlos R. Mafra
parent 587a37dc60
commit 7889c50c36
3 changed files with 8 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
tiffdatadir = $(wprefs_datadir)/tiff
EXTRA_DIST = \
if ICON_EXT_TIFF
dist_tiffdata_DATA = \
advancetonewworkspace.tiff \
animations.tiff \
appearance.tiff \
@@ -72,13 +73,4 @@ EXTRA_DIST = \
workspace.tiff \
workspacename.tiff \
xis.tiff
TIFF_FILES=
tiffdata_DATA=$(TIFF_FILES)
install-data-local:
if [ @ICONEXT@ = "tiff" -a x"$(TIFF_FILES)" = "x" ] ; then\
$(MAKE) install-data TIFF_FILES="$(EXTRA_DIST)";\
fi
endif

View File

@@ -1,7 +1,7 @@
xpmdatadir = $(wprefs_datadir)/xpm
EXTRA_DIST = \
if ICON_EXT_XPM
dist_xpmdata_DATA = \
advancetonewworkspace.xpm \
animations.xpm \
appearance.xpm \
@@ -72,14 +72,4 @@ EXTRA_DIST = \
workspace.xpm \
workspacename.xpm \
xis.xpm
XPM_FILES=
xpmdata_DATA=$(XPM_FILES)
install-data-local:
if [ @ICONEXT@ = "xpm" -a x"$(XPM_FILES)" = "x" ] ; then\
$(MAKE) install-data XPM_FILES="$(EXTRA_DIST)";\
fi
endif

View File

@@ -792,6 +792,8 @@ AC_SUBST(HEADER_SEARCH_PATH)
AC_SUBST(GFXLIBS)
AC_SUBST(ICONEXT)
AM_CONDITIONAL([ICON_EXT_XPM], [test "x$ICONEXT" = "xxpm"])
AM_CONDITIONAL([ICON_EXT_TIFF], [test "x$ICONEXT" = "xtiff"])
dnl ==============================================