Makefile.am 1.03 KB
Newer Older
1
AM_CFLAGS = $(DCADEC_CFLAGS)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
2
AM_CPPFLAGS = -I$(top_srcdir)/include
Gildas Bazin's avatar
Gildas Bazin committed
3

4 5
bin_PROGRAMS = dcadec extract_dca
dcadec_SOURCES = dcadec.c getopt.h getopt.c gettimeofday.h gettimeofday.c
6 7
dcadec_LDADD = ../libdca/libdca.la \
	       ../libao/libao.la $(LIBAO_LIBS)
8
extract_dca_SOURCES = extract_dca.c getopt.c
Gildas Bazin's avatar
Gildas Bazin committed
9

10 11
man1_MANS = dcadec.1 extract_dca.1
EXTRA_DIST = configure.incl $(man1_MANS)
12 13

bin_SCRIPTS = dtsdec extract_dts
14 15
MOSTLYCLEANFILES = $(bin_SCRIPTS)

16 17 18 19 20 21 22
dtsdec extract_dts: Makefile
	{ \
		echo '#! /bin/sh' ; \
		echo 'exec "$$(dirname "$$0")/$$(basename "$$0" | sed -e 's/ts/ca/')" "$$@"' ; \
	} > $@.tmp
	chmod +x $@.tmp
	mv -f $@.tmp $@
23 24 25 26 27 28 29 30 31 32 33 34 35 36

install-data-hook:
	for a in dcadec extract_dca; do \
		oldname=`echo "$$a" | sed -e 's/ca/ts/' | sed '$(transform)'` ; \
		name=`echo "$$a" | sed '$(transform)'` ; \
		ln -sf "$(man1dir)/$${name}.1" "$(DESTDIR)$(man1dir)/$${oldname}.1" ; \
	done

uninstall-hook:
	for a in dcadec extract_dca; do \
		oldname=`echo "$$a" | sed -e 's/ca/ts/' | sed '$(transform)'` ; \
		unlink "$(DESTDIR)$(man1dir)/$${oldname}.1" ; \
	done