File: Makefile.am

package info (click to toggle)
scribes 0.3.3.3-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,512 kB
  • ctags: 4,045
  • sloc: python: 24,125; sh: 3,358; xml: 2,224; makefile: 255
file content (54 lines) | stat: -rw-r--r-- 1,464 bytes parent folder | download
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
edit = sed -e 's,@python_path\@,$(pythondir),g'
startupdir = $(prefix)/bin
startup_script = scribes
startup_script_in_files = $(startup_script).in
startup_DATA = $(startup_script_in_files:.in=)

$(startup_script): Makefile $(startup_script_in_files)
	rm -f $(startup_script) $(startup_script).tmp
	$(edit) $(startup_script_in_files) > $(startup_script).tmp
	mv $(startup_script).tmp $(startup_script)

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = po help data SCRIBES

# Workaround broken scrollkeeper that doesn't remove its files on
# uninstall.
distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper

DISTCHECK_CONFIGURE_FLAGS =	\
	--disable-scrollkeeper

EXTRA_DIST = m4 \
	autogen.sh \
	depcheck.py \
	$(startup_script_in_files) \
	xmldocs.make \
	omf.make \
	gnome-doc-utils.make \
	intltool-merge.in \
	intltool-update.in \
	intltool-extract.in \
	i18n_plugin_extractor.py \
	CONTRIBUTORS \
	TODO \
	plugins \
	compile.py \
	TRANSLATORS

DISTCLEANFILES = \
	$(startup_script) \
	gnome-doc-utils.make

install-data-hook:
	echo "Start byte compiling plugins..."
	python -OO compile.py
	echo "Finished byte compiling plugins"
	if [ -d $(DESTDIR)$(datadir)/scribes/plugins ]; then \
		echo "removing " $(DESTDIR)$(datadir)/scribes/plugins ;\
		rm -rf $(DESTDIR)$(datadir)/scribes/plugins ;\
		echo "removed " $(DESTDIR)$(datadir)/scribes/plugins ;\
	fi
	cp -R plugins $(DESTDIR)$(datadir)/scribes
	chmod 755 $(DESTDIR)$(startupdir)/$(startup_script)