annotate etc/module.mk @ 20341:47d704435aa4

eliminate recursive make invocation in etc/icons directory * etc/module.mk: New file. * etc/icons/Makefile.am: Move contents to etc/module.mk and Makefile.am. Adapt filenames as needed. * Makefile.am (EXTRA_DIST): Move list of files in etc directory to etc/module.mk. (SUBDIRS): Remove etc/icons from the list. * configure.ac (AC_OUTPUT): Don't generate etc/icons/Makefile.
author John W. Eaton <jwe@octave.org>
date Fri, 03 Jul 2015 07:51:51 -0400
parents
children c3c1fb44f9b5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20341
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 EXTRA_DIST += \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 etc/NEWS.1 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 etc/NEWS.2 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 etc/NEWS.3 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 etc/PROJECTS \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 etc/README.Cygwin \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 etc/README.Linux \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 etc/README.MacOS \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 etc/README.MinGW \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 etc/README.Windows \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 etc/README.gnuplot \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 etc/README.kpathsea \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 etc/gdbinit
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 EXTRA_DIST += \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 etc/OLD-ChangeLogs/ChangeLog \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 etc/OLD-ChangeLogs/ChangeLog.1 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 etc/OLD-ChangeLogs/doc-ChangeLog \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 etc/OLD-ChangeLogs/libcruft-ChangeLog \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 etc/OLD-ChangeLogs/liboctave-ChangeLog \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 etc/OLD-ChangeLogs/scripts-ChangeLog \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 etc/OLD-ChangeLogs/src-ChangeLog \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 etc/OLD-ChangeLogs/test-ChangeLog
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 icon_IMAGE_FILES = \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 etc/icons/octave-logo.svg \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 etc/icons/octave-sombrero.png
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 icon_PNG_SIZES = \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 512 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 256 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 128 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 64 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 48 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 32 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 24 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 22 \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 16
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 BUILT_PNG_ICONS = $(patsubst %,etc/icons/octave-logo-%.png,$(icon_PNG_SIZES))
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 WINDOWS_PNG_ICONS = $(filter %-16.png %-32.png %-48.png %-256.png,$(BUILT_PNG_ICONS))
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 BUILT_ICONS = \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 $(BUILT_PNG_ICONS) \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 etc/icons/octave-logo.ico
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 EXTRA_DIST += \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 $(BUILT_ICONS) \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 $(icon_IMAGE_FILES) \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 etc/icons/octave.appdata.xml.in \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 etc/icons/octave.desktop.in
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 image_DATA = \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 $(icon_IMAGE_FILES) \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 octave-logo.ico
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 VENDOR = www.octave.org
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 all-icons: etc/icons/octave.appdata.xml etc/icons/octave.desktop $(BUILT_ICONS)
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 etc/icons/octave.appdata.xml: etc/iconst/octave.appdata.xml.in Makefile
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 $(AM_V_GEN)rm -f $@-t $@ && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 $(SED) < $< > $@-t \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65 -e "s|%OCTAVE_DESKTOP_FILE%|${VENDOR}-octave.desktop|" && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 mv $@-t $@
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68 etc/icons/octave.desktop: etc/icons/octave.desktop.in Makefile
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 $(AM_V_GEN)rm -f $@-t $@ && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 $(SED) < $< > $@-t \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72 -e "s|%OCTAVE_PREFIX%|${prefix}|" && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 mv $@-t $@
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75 $(BUILT_PNG_ICONS): etc/icons/octave-logo.svg
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 $(AM_V_GEN)rm -f $@-t $@ && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77 $(RSVG_CONVERT) -w $(lastword $(subst -, ,$(patsubst %.png,%,$@))) $< > $@-t && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78 mv $@-t $@
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80 etc/icons/octave-logo.ico: $(WINDOWS_PNG_ICONS)
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81 $(AM_V_GEN)rm -f $@-t $@ && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82 $(ICOTOOL) --create --raw $^ > $@-t && \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83 mv $@-t $@
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
84
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85 install-icons:
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 -if test -n "$(DESKTOP_FILE_INSTALL)"; then \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88 --vendor $(VENDOR) octave.desktop; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 fi
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 for f in $(BUILT_PNG_ICONS); do \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91 size=`echo $$f | $(SED) -n -e "s/.*-\([0-9]\+\)\.png/\1/p"`; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92 if test -f $$f; then d=; else d="$(srcdir)/etc/icons/"; fi; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 $(MKDIR_P) $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 $(INSTALL_DATA) "$$d$$f" $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/octave.png; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 done
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 $(MKDIR_P) $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 $(INSTALL_DATA) $(srcdir)/etc/icons/octave-logo.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/octave.svg
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 $(MKDIR_P) $(DESTDIR)$(datadir)/appdata
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 $(INSTALL_DATA) etc/icons/octave.appdata.xml $(DESTDIR)$(datadir)/appdata/$(VENDOR)-octave.appdata.xml
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 uninstall-icons:
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102 if test -n "$(DESKTOP_FILE_INSTALL)"; then \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 rm -f $(DESTDIR)$(datadir)/applications/$(VENDOR)-octave.desktop; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 fi
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 for f in $(BUILT_PNG_ICONS); do \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106 size=`echo $$f | $(SED) -n -e "s/.*-\([0-9]\+\)\.png/\1/p"`; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/octave.png; \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 done
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109 rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/octave.svg
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110 rm -f $(DESTDIR)$(datadir)/appdata/$(VENDOR)-octave.appdata.xml
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112 CLEANFILES += \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113 etc/icons/octave.appdata.xml \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114 etc/icons/octave.desktop
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
115
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116 MAINTAINERCLEANFILES += \
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117 $(BUILT_ICONS)
47d704435aa4 eliminate recursive make invocation in etc/icons directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118