summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: f701aa08fa426d507ccff64cd7036805b4176fcc (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
SUBDIRS = guile

EXTRA_DIST = skribilo.in pre-inst-skribilo.in skribilo-config.in

bin_SCRIPTS = skribilo skribilo-config
noinst_SCRIPTS = pre-inst-skribilo

CLEANFILES  = $(bin_SCRIPTS) $(noinst_SCRIPTS)

substitute = sed -e 's,[@]guilemoduledir[@],$(guilemoduledir),g'	\
		 -e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g'	\
		 -e 's,[@]abs_top_builddir[@],$(abs_top_builddir),g'	\
		 -e 's,[@]prefix[@],$(prefix),g'			\
		 -e 's,[@]docdir[@],$(docdir),g'			\
		 -e 's,[@]emacsdir[@],$(emacsdir),g'			\
		 -e 's,[@]GUILE[@],$(GUILE),g'				\
		 -e 's,[@]PACKAGE_STRING[@],$(PACKAGE_STRING),g'	\
		 -e 's,[@]PACKAGE_NAME[@],$(PACKAGE_NAME),g'		\
		 -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g'	\
		 -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g'

SUFFIXES = .in

.in:
	$(substitute) "$^" > "$@.tmp" &&	\
	chmod +x "$@.tmp" &&			\
	mv "$@.tmp" "$@"