1 .PHONY: all web clean distclean install install-web
5 DISTNAME = ${PROG}-${VERSION}
21 OBJS = ${SOURCES:.c=.o} audio_${BACKEND}.o
35 configure.local.example \
46 Makefile.configure config.h: configure tests.c
47 @echo "$@ is out of date; please run ./configure"
50 include Makefile.configure
55 ${CC} -o $@ ${OBJS} ${LDFLAGS} ${LDADD} ${LDADD_LIB_IMSG} \
56 ${LDADD_DECODERS} ${LDADD_LIB_SOCKET} ${LDADD_BACKEND}
62 rm -f ${OBJS} ${OBJS:.o=.d} ${PROG}
66 rm -f Makefile.configure config.h config.h.old config.log config.log.old
69 mkdir -p ${DESTDIR}${BINDIR}
70 mkdir -p ${DESTDIR}${MANDIR}/man1
71 ${INSTALL_PROGRAM} ${PROG} ${DESTDIR}${BINDIR}
72 ${INSTALL_MAN} amused.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1
75 ${MAKE} -C web install
79 ${INSTALL_PROGRAM} ${PROG} ${HOME}/bin
80 ${MAKE} -C web install-local
83 rm ${DESTDIR}${BINDIR}/${PROG}
84 rm ${DESTDIR}${MANDIR}/man1/${PROG}.1
86 # --- maintainer targets ---
88 dist: ${DISTNAME}.sha256
90 ${DISTNAME}.sha256: ${DISTNAME}.tar.gz
91 sha256 ${DISTNAME}.tar.gz > $@
93 ${DISTNAME}.tar.gz: ${DISTFILES}
94 mkdir -p .dist/${DISTNAME}
95 ${INSTALL} -m 0644 ${DISTFILES} .dist/${DISTNAME}
96 cd .dist/${DISTNAME} && chmod 755 configure
97 cd .dist/${DISTNAME} && cp -R ../../contrib . && \
98 chmod 755 contrib/amused-monitor
99 cd .dist && tar zcf ../$@ ${DISTNAME}
102 # --- dependency management ---
104 # these .d files are produced during the first build if the compiler
108 -include audio_alsa.d
109 -include audio_sndio.d
116 -include player_123.d
117 -include player_flac.d
118 -include player_oggvorbis.d
119 -include player_opus.d