summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 077c5c978767894f98315e62216c1665deeac8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUBDIRS = guile

EXTRA_DIST = skribilo.in

bin_SCRIPTS = skribilo
CLEANFILES  = $(bin_SCRIPTS)

guilemoduledir = $(GUILE_SITE)
substitute = sed -e 's,[@]guilemoduledir[@],$(guilemoduledir),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'

SUFFIXES = .in

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