1 .PHONY: all web clean distclean install install-web
5 DISTNAME = ${PROG}-${VERSION}
21 OBJS = ${SOURCES:.c=.o} audio_${BACKEND}.o
36 configure.local.example \
50 Makefile.configure config.h: configure tests.c
51 @echo "$@ is out of date; please run ./configure"
54 include Makefile.configure
59 ${CC} -o $@ ${OBJS} ${LDFLAGS} ${LDADD} ${LDADD_LIB_IMSG} \
60 ${LDADD_DECODERS} ${LDADD_LIB_SOCKET} ${LDADD_BACKEND}
66 rm -f ${OBJS} ${OBJS:.o=.d} ${PROG}
70 rm -f Makefile.configure config.h config.h.old config.log config.log.old
73 mkdir -p ${DESTDIR}${BINDIR}
74 mkdir -p ${DESTDIR}${MANDIR}/man1
75 ${INSTALL_PROGRAM} ${PROG} ${DESTDIR}${BINDIR}
76 ${INSTALL_MAN} amused.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1
79 ${MAKE} -C web install
83 ${INSTALL_PROGRAM} ${PROG} ${HOME}/bin
84 ${MAKE} -C web install-local
87 rm ${DESTDIR}${BINDIR}/${PROG}
88 rm ${DESTDIR}${MANDIR}/man1/${PROG}.1
90 # --- maintainer targets ---
92 dist: ${DISTNAME}.sha256
94 ${DISTNAME}.sha256: ${DISTNAME}.tar.gz
95 sha256 ${DISTNAME}.tar.gz > $@
97 ${DISTNAME}.tar.gz: ${DISTFILES}
98 mkdir -p .dist/${DISTNAME}
99 ${INSTALL} -m 0644 ${DISTFILES} .dist/${DISTNAME}
100 cd .dist/${DISTNAME} && chmod 755 configure
101 cd .dist/${DISTNAME} && cp -R ../../contrib . && \
102 chmod 755 contrib/amused-monitor
103 ${MAKE} -C web DESTDIR=${PWD}/.dist/${DISTNAME}/web dist
104 cd .dist && tar zcf ../$@ ${DISTNAME}
107 # --- dependency management ---
109 # these .d files are produced during the first build if the compiler
113 -include audio_alsa.d
115 -include audio_oboe.d
116 -include audio_sndio.d
123 -include player_123.d
124 -include player_flac.d
125 -include player_oggvorbis.d
126 -include player_opus.d