mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +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:
committed by
Carlos R. Mafra
parent
587a37dc60
commit
7889c50c36
@@ -1,6 +1,7 @@
|
|||||||
tiffdatadir = $(wprefs_datadir)/tiff
|
tiffdatadir = $(wprefs_datadir)/tiff
|
||||||
|
|
||||||
EXTRA_DIST = \
|
if ICON_EXT_TIFF
|
||||||
|
dist_tiffdata_DATA = \
|
||||||
advancetonewworkspace.tiff \
|
advancetonewworkspace.tiff \
|
||||||
animations.tiff \
|
animations.tiff \
|
||||||
appearance.tiff \
|
appearance.tiff \
|
||||||
@@ -72,13 +73,4 @@ EXTRA_DIST = \
|
|||||||
workspace.tiff \
|
workspace.tiff \
|
||||||
workspacename.tiff \
|
workspacename.tiff \
|
||||||
xis.tiff
|
xis.tiff
|
||||||
|
endif
|
||||||
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
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
xpmdatadir = $(wprefs_datadir)/xpm
|
xpmdatadir = $(wprefs_datadir)/xpm
|
||||||
|
|
||||||
|
if ICON_EXT_XPM
|
||||||
EXTRA_DIST = \
|
dist_xpmdata_DATA = \
|
||||||
advancetonewworkspace.xpm \
|
advancetonewworkspace.xpm \
|
||||||
animations.xpm \
|
animations.xpm \
|
||||||
appearance.xpm \
|
appearance.xpm \
|
||||||
@@ -72,14 +72,4 @@ EXTRA_DIST = \
|
|||||||
workspace.xpm \
|
workspace.xpm \
|
||||||
workspacename.xpm \
|
workspacename.xpm \
|
||||||
xis.xpm
|
xis.xpm
|
||||||
|
endif
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|||||||
@@ -792,6 +792,8 @@ AC_SUBST(HEADER_SEARCH_PATH)
|
|||||||
|
|
||||||
AC_SUBST(GFXLIBS)
|
AC_SUBST(GFXLIBS)
|
||||||
AC_SUBST(ICONEXT)
|
AC_SUBST(ICONEXT)
|
||||||
|
AM_CONDITIONAL([ICON_EXT_XPM], [test "x$ICONEXT" = "xxpm"])
|
||||||
|
AM_CONDITIONAL([ICON_EXT_TIFF], [test "x$ICONEXT" = "xtiff"])
|
||||||
|
|
||||||
|
|
||||||
dnl ==============================================
|
dnl ==============================================
|
||||||
|
|||||||
Reference in New Issue
Block a user