Debian Codegraph @

lib/icons/Makefile

raw symbols SCIP
1 MKPATH=../../mk/
2 include $(MKPATH)buildsys.mk
3
4 DATA = att-16.png att-32.png att-128.png att-256.png att-512.png
5 PACKAGE = icons
6
7 # If this isn't a --with-no-install build and at least one of the SDL, SDL2,
8 # or X11 front ends has been configured, install the desktop and icon files
9 # into the paths expected by https://freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
10 # (see also https://github.com/angband/angband/pull/5302 ).
11 install-extra:
12 @if test x"${NOINSTALL}" != xyes ; then \
13 if test x"${ENABLESDL2}" = xyes ; then \
14 desktop_file=angband-sdl2.desktop ; \
15 elif test x"${ENABLESDL}" = xyes ; then \
16 desktop_file=angband-sdl.desktop ; \
17 elif test x"${ENABLEX11}" = xyes ; then \
18 desktop_file=angband-x11.desktop ; \
19 else \
20 desktop_file=none ; \
21 fi ; \
22 if test x"$$desktop_file" != xnone ; then \
23 i=angband.metainfo.xml ; \
24 i_d="${DESTDIR}${datadir}/metainfo/$$i" ; \
25 ${INSTALL_STATUS}; \
26 if ${MKDIR_P} "$$(dirname $$i_d)" && ${INSTALL} -m 644 "$$i" "$$i_d" ; then \
27 ${INSTALL_OK}; \
28 else \
29 ${INSTALL_FAILED}; \
30 fi ; \
31 i="$$desktop_file" ; \
32 i_d="${DESTDIR}${datadir}/applications/angband.desktop" ; \
33 ${INSTALL_STATUS}; \
34 if ${MKDIR_P} "$$(dirname $$i_d)" && ${INSTALL} -m 644 "$$i" "$$i_d" ; then \
35 ${INSTALL_OK}; \
36 else \
37 ${INSTALL_FAILED}; \
38 fi ; \
39 for res in 16 32 128 256 512 ; do \
40 i=att-"$$res".png ; \
41 i_d="${DESTDIR}${datadir}"/icons/hicolor/"$$res"x"$$res"/apps/angband.png ; \
42 ${INSTALL_STATUS}; \
43 if ${MKDIR_P} "$$(dirname $$i_d)" && ${INSTALL} -m 644 "$$i" "$$i_d" ; then \
44 ${INSTALL_OK}; \
45 else \
46 ${INSTALL_FAILED}; \
47 fi \
48 done ; \
49 fi ; \
50 fi