comparison etc/icons/Makefile.am @ 18913:ab7d81d5fbdf

build: Create octave.desktop even when --disable-docs configured (bug #42720). * etc/icons/Makefile.am, etc/icons/octave-logo.ico, etc/icons/octave-logo.png, etc/icons/octave-logo.svg, etc/icons/octave-sombrero.png, etc/icons/octave.desktop.in, etc/icons/octave_branding_samples.svg: Move doc/icons files to /etc/icons directory. * Makefile.am: Add etc/icons to list of SUBDIRS to build. * configure.ac: Change doc/icons to etc/icons. * doc/Makefile.am: Remove icons from list of SUBDIRS to build.
author Rik <rik@octave.org>
date Sun, 13 Jul 2014 19:46:57 -0700
parents doc/icons/Makefile.am@d63878346099
children
comparison
equal deleted inserted replaced
18912:b316363e3ce5 18913:ab7d81d5fbdf
1 # Makefile for Octave's doc/icons directory
2 #
3 # Copyright (C) 2012-2013 John W. Eaton
4 #
5 # This file is part of Octave.
6 #
7 # Octave is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 3 of the License, or (at
10 # your option) any later version.
11 #
12 # Octave is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Octave; see the file COPYING. If not, see
19 # <http://www.gnu.org/licenses/>.
20
21 include $(top_srcdir)/build-aux/common.mk
22
23 IMAGE_FILES = \
24 octave-logo.ico \
25 octave-logo.png \
26 octave-logo.svg \
27 octave-sombrero.png
28
29 image_DATA = $(IMAGE_FILES)
30
31 all-local: octave.desktop
32
33 octave.desktop: octave.desktop.in Makefile
34 @echo "making $@ from $<"
35 $(SED) < $< > $@-t \
36 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \
37 -e "s|%OCTAVE_PREFIX%|${prefix}|"
38 mv $@-t $@
39
40 install-data-local:
41 -if test -n "$(DESKTOP_FILE_INSTALL)"; then \
42 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
43 --vendor www.octave.org octave.desktop; \
44 fi
45
46 uninstall-local:
47 if test -n "$(DESKTOP_FILE_INSTALL)"; then \
48 rm -f $(DESTDIR)$(datadir)/applications/www.octave.org-octave.desktop; \
49 fi
50
51 EXTRA_DIST = \
52 $(IMAGE_FILES) \
53 octave.desktop.in
54
55 CLEANFILES = octave.desktop
56