summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: c1a64340f8d93a96f98127e65fe03e47fc9a8cf7 (plain)
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
include $(top_srcdir)/Makefile.shared

@INTLTOOL_DESKTOP_RULE@

DESKTOP_IN_FILES=nautilus.desktop.in nautilus-help.desktop.in
DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)

if HAVE_APPLETS
APPLETS_SUBDIRS = applets
endif

SUBDIRS =			\
	libnautilus 		\
	libnautilus-private 	\
	libnautilus-adapter	\
	cut-n-paste-code 	\
	src 			\
	po 			\
	data 			\
	icons 			\
	$(NULL)

XXX = \
	components		\
	helper-utilities 	\
	helper-scripts		\
	$(APPLETS_SUBDIRS)	\
	test 			\
	user-guide		\
	help			\
	omf-install		\
	$(NULL)

EXTRA_DIST=					\
	TRADEMARK_NOTICE			\
	COPYING.LIB				\
	COPYING-DOCS				\
	HACKING					\
	MAINTAINERS				\
	nautilus.spec.in			\
	nautilus-clean.sh			\
	nautilus.desktop			\
	nautilus.desktop.in			\
	nautilus-help.desktop			\
	nautilus-help.desktop.in		\
	nautilus-launch-icon.png		\
	gnome-starthere-96.png			\
	gnome-starthere.png			\
	ChangeLog-20000414			\
	ChangeLog-20000625			\
	ChangeLog-20000831			\
	ChangeLog-20001018			\
	intltool-extract.in			\
	intltool-merge.in			\
	intltool-update.in			\
	Makefile.shared				\
	add-include-prefix			\
	$(DESKTOP_IN_FILES)			\
	$(DESKTOP_FILES)			\
	$(NULL)

appicondir = $(datadir)/pixmaps
appicon_DATA = 	nautilus-launch-icon.png 	\
		gnome-starthere-96.png		\
		gnome-starthere.png

Applicationsdir = $(datadir)/gnome/apps/Applications
Applications_DATA = $(DESKTOP_FILES)

Toplevelmenudir = $(datadir)/gnome/apps
Toplevelmenu_DATA = nautilus-help.desktop

## [The following is shamelessly copied from gnome-vfs.]

## We create `nautilusConf.sh' here and not from configure because we
## want to get the paths expanded correctly.  Macros like srcdir are
## given the value NONE in configure if the user doesn't specify them
## (this is an autoconf feature, not a bug).

bin_SCRIPTS = $(top_builddir)/nautilus-config

confexecdir=$(libdir)
confexec_DATA =					\
	nautilusConf.sh				\
	$(NULL)

nautilusConf.sh: nautilusConf.sh.in Makefile
	sed -e 's?\@NAUTILUS_LIBDIR\@?$(NAUTILUS_LIBDIR)?g' \
	    -e 's?\@NAUTILUS_INCLUDEDIR\@?$(NAUTILUS_INCLUDEDIR)?g' \
	    -e 's?\@VERSION\@?$(VERSION)?g' \
	    -e 's?\@NAUTILUS_LIBS\@?$(NAUTILUS_LIBS)?g' \
	      < $(srcdir)/nautilusConf.sh.in > nautilusConf.tmp \
	  && mv nautilusConf.tmp nautilusConf.sh

nautilus-config: nautilus-config.in Makefile
	sed -e 's?\@LIBDIR\@?$(libdir)?g' \
	    -e 's?\@NAUTIlUS_LIBDIR\@?$(NAUTILUS_LIBDIR)?g' \
	    -e 's?\@NAUTILUS_INCLUDEDIR\@?$(NAUTILUS_INCLUDEDIR)?g' \
	    -e 's?\@VERSION\@?$(VERSION)?g' \
	    -e 's?\@NAUTILUS_LIBS\@?$(NAUTILUS_LIBS)?g' \
	      < $(srcdir)/nautilus-config.in > nautilus-config.tmp \
	  && mv nautilus-config.tmp nautilus-config && \
		chmod 755 nautilus-config

##################################################################
#
# dist-hook
#
##################################################################

dist-hook: nautilus.spec
	cp nautilus.spec $(distdir)

##################################################################
#
# install-data-hook
#
##################################################################

install-data-hook: nautilus-clean.sh
	$(mkinstalldirs) $(DESTDIR)$(prefix)/bin
	@list='nautilus-clean.sh'; for p in $$list; do\
	  if test -f $(srcdir)/$$p; then \
	    echo "  $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p"; \
	    $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p; \
	  else :; fi; \
	done