mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
hdspconf: move .desktop and icon files to desktop, use modern destination for icons
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
962a07911c
commit
ecf4884564
7 changed files with 39 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -53,6 +53,7 @@ hdspconf/configure
|
|||
hdspconf/src/hdspconf
|
||||
hdspconf/src/Makefile
|
||||
hdspconf/pixmaps/Makefile
|
||||
hdspconf/desktop/Makefile
|
||||
hdspmixer/Makefile
|
||||
hdspmixer/configure
|
||||
hdspmixer/src/hdspmixer
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
EXTRA_DIST = gitcompile hdspconf.desktop depcomp
|
||||
SUBDIRS = src pixmaps
|
||||
|
||||
desktopdir = $(DESKTOP_DIR)
|
||||
desktop_DATA = hdspconf.desktop
|
||||
EXTRA_DIST = gitcompile depcomp
|
||||
SUBDIRS = src pixmaps desktop
|
||||
|
||||
alsa-dist: distdir
|
||||
@rm -rf ../distdir/hdspconf
|
||||
|
|
|
|||
|
|
@ -39,4 +39,4 @@ FLTK_LIBS=`$FLTK_CONFIG $fltk_config_args --ldflags`
|
|||
CXXFLAGS="$CXXFLAGS $ALSA_CFLAGS $FLTK_CXXFLAGS"
|
||||
LIBS="$LIBS $ALSA_LIBS $FLTK_LIBS"
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile pixmaps/Makefile)
|
||||
AC_OUTPUT(Makefile src/Makefile pixmaps/Makefile desktop/Makefile)
|
||||
|
|
|
|||
34
hdspconf/desktop/Makefile.am
Normal file
34
hdspconf/desktop/Makefile.am
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
APPNAME = hdspconf
|
||||
|
||||
desktopdir = $(datadir)/applications
|
||||
desktop_DATA = $(APPNAME).desktop
|
||||
|
||||
public_icons = \
|
||||
hicolor_apps_48x48_$(APPNAME).png
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(public_icons) \
|
||||
$(desktop_DATA)
|
||||
|
||||
install-icons:
|
||||
for icon in $(public_icons); do \
|
||||
THEME=`echo $$icon | cut -d_ -f1`; \
|
||||
CONTEXT=`echo $$icon | cut -d_ -f2`; \
|
||||
SIZE=`echo $$icon | cut -d_ -f3`; \
|
||||
ICONFILE=`echo $$icon | cut -d_ -f4`; \
|
||||
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
|
||||
done
|
||||
|
||||
uninstall-icons:
|
||||
-for icon in $(public_icons); do \
|
||||
THEME=`echo $$icon | cut -d_ -f1`; \
|
||||
CONTEXT=`echo $$icon | cut -d_ -f2`; \
|
||||
SIZE=`echo $$icon | cut -d_ -f3`; \
|
||||
ICONFILE=`echo $$icon | cut -d_ -f4`; \
|
||||
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
|
||||
done
|
||||
|
||||
install-data-local: install-icons
|
||||
|
||||
uninstall-local: uninstall-icons
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
|
@ -1,4 +1 @@
|
|||
pixmapdir = $(PIXMAP_DIR)
|
||||
pixmap_DATA = hdspconf.png
|
||||
|
||||
EXTRA_DIST = $(wildcard *.xpm) hdspconf.png
|
||||
EXTRA_DIST = $(wildcard *.xpm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue