-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
136 lines (127 loc) · 5.36 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
## Process this file with automake to produce Makefile.in
SUBDIRS = src po
EXTRA_DIST = \
autogen.sh \
xournal.glade xournal.gladep \
xournal.xml x-xoj.desktop xournal.desktop
install-data-local:
@$(NORMAL_INSTALL)
if test -d $(srcdir)/pixmaps; then \
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
$(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
fi \
done \
fi; \
if test -d $(srcdir)/html-doc; then \
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/html-doc; \
for docfile in $(srcdir)/html-doc/*; do \
if test -f $$docfile; then \
$(INSTALL_DATA) $$docfile $(DESTDIR)$(pkgdatadir)/html-doc; \
fi \
done; \
if test ! -e $(DESTDIR)$(pkgdatadir)/html-doc/pixmaps; then \
ln -s ../pixmaps $(DESTDIR)$(pkgdatadir)/html-doc/pixmaps; \
fi \
fi; \
echo "*** Desktop files, icons, MIME types not installed. Run 'make desktop-install'"; \
echo "*** (or 'make home-desktop-install' for installation in a home directory)."
install-windows:
echo "Copying pixmaps"; \
if test -d $(srcdir)/pixmaps; then \
$(mkinstalldirs) $(DESTDIR)$(prefix)/pixmaps; \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
$(INSTALL_DATA) $$pixmap $(DESTDIR)$(prefix)/pixmaps; \
fi \
done \
fi; \
echo "Copying exe"; \
if test -f $(srcdir)/src/xournal.exe; then \
$(INSTALL_DATA) $(srcdir)/src/xournal.exe $(DESTDIR)$(prefix)/; \
fi; \
echo "Copying dll files"; \
if test -d /mingw/bin; then \
for dll in /mingw/bin/*.dll; do \
if test -f $$dll; then \
$(INSTALL_DATA) $$dll $(DESTDIR)$(prefix)/; \
fi \
done \
fi;
desktop-install:
if test "$(datadir)" = "/usr/share"; then \
desktopdir=/usr/share; \
else \
desktopdir=/usr/local/share; \
fi; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/icons/hicolor/scalable/apps; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/mime/packages; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/applications; \
$(mkinstalldirs) $(DESTDIR)/usr/share/mimelnk/application; \
$(INSTALL_DATA) $(srcdir)/pixmaps/xournal.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/apps; \
$(INSTALL_DATA) $(srcdir)/pixmaps/xoj.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes; \
if test ! -e $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-xoj.svg; then \
ln -s xoj.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-xoj.svg; \
fi; \
$(INSTALL_DATA) $(srcdir)/xournal.xml $(DESTDIR)$$desktopdir/mime/packages; \
$(INSTALL_DATA) $(srcdir)/xournal.desktop $(DESTDIR)$$desktopdir/applications; \
$(INSTALL_DATA) $(srcdir)/x-xoj.desktop $(DESTDIR)/usr/share/mimelnk/application; \
if test -z "$(DESTDIR)"; then \
echo "Updating desktop, mime, and icon databases."; \
update-desktop-database; \
update-mime-database $$desktopdir/mime; \
gtk-update-icon-cache -f -t $$desktopdir/icons/hicolor; \
else \
echo "*** Not updating desktop, mime, and icon databases. After install, run:"; \
echo "*** update-desktop-database"; \
echo "*** update-mime-database $$desktopdir/mime"; \
echo "*** gtk-update-icon-cache -f -t $$desktopdir/icons/hicolor"; \
fi
home-desktop-install:
desktopdir=$(HOME)/.local/share; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/icons/hicolor/scalable/apps; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/mime/packages; \
$(mkinstalldirs) $(DESTDIR)$$desktopdir/applications; \
$(mkinstalldirs) $(DESTDIR)$(HOME)/.kde/share/mimelnk/application; \
$(INSTALL_DATA) $(srcdir)/pixmaps/xournal.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/apps; \
$(INSTALL_DATA) $(srcdir)/pixmaps/xoj.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes; \
if test ! -e $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-xoj.svg; then \
ln -s xoj.svg $(DESTDIR)$$desktopdir/icons/hicolor/scalable/mimetypes/gnome-mime-application-x-xoj.svg; \
fi; \
$(INSTALL_DATA) $(srcdir)/xournal.xml $(DESTDIR)$$desktopdir/mime/packages; \
$(INSTALL_DATA) $(srcdir)/xournal.desktop $(DESTDIR)$$desktopdir/applications; \
$(INSTALL_DATA) $(srcdir)/x-xoj.desktop $(DESTDIR)$(HOME)/.kde/share/mimelnk/application; \
if test -z "$(DESTDIR)"; then \
echo "Updating desktop, mime, and icon databases."; \
XDG_DATA_DIRS=$(HOME)/.local/share update-desktop-database; \
update-mime-database $$desktopdir/mime; \
gtk-update-icon-cache -f -t $$desktopdir/icons/hicolor; \
else \
echo "*** Not updating desktop, mime, and icon databases. After install, run:"; \
echo "*** update-desktop-database"; \
echo "*** update-mime-database $$desktopdir/mime"; \
echo "*** gtk-update-icon-cache -f -t $$desktopdir/icons/hicolor"; \
fi
dist-hook:
if test -d pixmaps; then \
mkdir $(distdir)/pixmaps; \
for pixmap in pixmaps/*; do \
if test -f $$pixmap; then \
cp -p $$pixmap $(distdir)/pixmaps; \
fi \
done \
fi; \
if test -d html-doc; then \
mkdir $(distdir)/html-doc; \
for docfile in html-doc/*; do \
if test -f $$docfile; then \
cp -p $$docfile $(distdir)/html-doc; \
fi \
done; \
if test ! -e $(distdir)/html-doc/pixmaps; then \
ln -s ../pixmaps $(distdir)/html-doc/pixmaps; \
fi \
fi