-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.am
54 lines (43 loc) · 1.25 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
SUBDIRS = \
src \
test \
man \
share \
po
EXTRA_DIST = \
autogen.sh \
doc \
proj \
m4 \
screenshot.png \
nip2.desktop.in \
nip2.xml \
nip2.appdata.xml
nip2appdir = $(datadir)/applications
nip2mimedir = $(datadir)/mime/packages
nip2appdatadir = $(datadir)/appdata
nip2app_DATA = nip2.desktop
nip2mime_DATA = nip2.xml
nip2appdata_DATA = nip2.appdata.xml
install-exec-hook:
-rm -rf ${DESTDIR}$(datadir)/doc/nip2
$(mkinstalldirs) ${DESTDIR}$(datadir)/doc/nip2
-cp -r ${top_srcdir}/doc/html ${top_srcdir}/doc/pdf ${DESTDIR}$(datadir)/doc/nip2
-rm -rf ${DESTDIR}$(datadir)/doc/nip2/html/CVS
-rm -rf ${DESTDIR}$(datadir)/doc/nip2/pdf/CVS
if UPDATE_DESKTOP
install-data-hook:
-$(UPDATE_MIME_DATABASE) ${DESTDIR}$(datadir)/mime
-$(UPDATE_DESKTOP_DATABASE) ${DESTDIR}$(datadir)/applications
endif
dist-hook:
# make sure we don't get any .svn dirs from EXTRA_DIST
# also "fred" gets left around occasionally
-find $(distdir) -name .svn -exec rm -rf {} \;
-find $(distdir) -name fred -exec rm {} \;
uninstall-hook:
# make sure we have write permission for 'rm'
-chmod -R u+w ${DESTDIR}$(datadir)/doc/nip2
-rm -rf ${DESTDIR}$(datadir)/doc/nip2
-$(UPDATE_MIME_DATABASE) ${DESTDIR}$(datadir)/mime
-$(UPDATE_DESKTOP_DATABASE) ${DESTDIR}$(datadir)/applications