shithub: sox

ref: e16ebfa2b2c80ccb8931f83213d605ff84a09a94
dir: /Makefile.in/

View raw version
#
# @configure_input@
#

# Paths

VPATH = @srcdir@
builddir= @builddir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@
includedir = @includedir@
datarootdir = @datarootdir@

# Shell commands.

INSTALL	= @INSTALL@
LN_S    = @LN_S@
RM      = /bin/rm -f

all: 
	cd src && $(MAKE) $@

man: $(srcdir)/sox.1 $(srcdir)/soxexam.1 $(srcdir)/libst.3 $(srcdir)/libgsm/gsm.3
	nroff -man $(srcdir)/sox.1 | col -b > sox.txt
	nroff -man $(srcdir)/soxexam.1 | col -b > soxexam.txt
	nroff -man $(srcdir)/libst.3 | col -b > libst.txt
	nroff -man $(srcdir)/src/libgsm/gsm.3 | col -b > gsm.txt
	nroff -man $(srcdir)/src/libgsm/gsm_option.3 | col -b > gsm_option.txt

PLAY_INSTALL_0 =
PLAY_INSTALL_1  = install-play

install: $(PLAY_INSTALL_$(PLAY_SUPPORT))
	cd src && $(MAKE) $@
	$(srcdir)/mkinstalldirs $(mandir)/man1 $(mandir)/man3
	$(INSTALL) -c -m 644 $(srcdir)/sox.1 $(mandir)/man1
	if [ -f $(mandir)/man1/soxmix.1 ] ; then $(RM) $(mandir)/man1/soxmix.1; fi
	cd $(mandir)/man1 && $(LN_S) sox.1 soxmix.1
	$(INSTALL) -c -m 644 $(srcdir)/soxexam.1 $(mandir)/man1
	$(INSTALL) -c -m 644 $(srcdir)/libst.3 $(mandir)/man3
	$(INSTALL) -c -m 644 $(srcdir)/src/libgsm/gsm.3 $(mandir)/man3
	$(INSTALL) -c -m 644 $(srcdir)/src/libgsm/gsm_option.3 $(mandir)/man3

install-play:
	if [ -f $(mandir)/man1/rec.1 ]; then $(RM) $(mandir)/man1/rec.1; fi
	$(srcdir)/mkinstalldirs $(mandir)/man1
	$(INSTALL) -m 644 $(srcdir)/play.1 $(mandir)/man1
	cd $(mandir)/man1 && $(LN_S) play.1 rec.1

install-lib:
	cd src && $(MAKE) $@
	$(srcdir)/mkinstalldirs $(mandir)/man3
	$(INSTALL) -m 644 $(srcdir)/libst.3 $(mandir)/man3


PLAY_UNINSTALL_0    =
PLAY_UNINSTALL_1    = uninstall-play

uninstall: $(PLAY_UNINSTALL_$(PLAY_SUPPORT))
	cd src && $(MAKE) $@
	$(RM) $(mandir)/man1/sox.1
	$(RM) $(mandir)/man1/soxmix.1
	$(RM) $(mandir)/man1/soxexam.1

uninstall-play:
	$(RM) $(mandir)/man1/play.1 $(mandir)/man1/rec.1

uninstall-lib:
	cd src && $(MAKE) $@
	$(RM) $(mandir)/man3/libst.3

clean:
	cd src && $(MAKE) $@

distclean:
	cd src && $(MAKE) $@
	$(RM) config.cache config.log config.status config.h Makefile
	$(RM) -r autom4te*.cache

# Rules to automatically rerun configure tools as needed.
$(srcdir)/configure: configure.in aclocal.m4
	cd $(srcdir) && autoconf

config.status: configure
	./config.status --recheck