X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/3939160bda17c95bc52906832baeaf32df76f590..028dedf7cfc028298e55bf07ef7ed41461b0f706:/GNUmakefile diff --git a/GNUmakefile b/GNUmakefile index 18db058..824340b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -9,6 +9,8 @@ man1dir=${mandir}/man1 catdir=${mandir} cat1dir=${catdir}/cat1 +TAGLIBFLAGS= `pkg-config --cflags --libs taglib` + INSTALL= install INSTALL_DATA= ${INSTALL} -m 444 INSTALL_DIRECTORY=${INSTALL} -d -m 755 @@ -19,12 +21,23 @@ ROFF= nroff -Tascii -mandoc SCRIPTS=\ fa-flacd \ fa-rip \ - fa-tags + flac2mp3 \ MAN=\ - fa-flacd.1 fa-flacd.0 + fa-flacd.1 fa-flacd.0 \ + fa-rip.1 fa-rip.0 \ + flac2mp3.1 flac2mp3.0 \ + +all: apic-read apic-write strip-tags ${SCRIPTS} ${MAN} + +test: + prove -r t -all: ${SCRIPTS} ${MAN} +#CXX= /opt/llvm-3.3.src/bin/clang -std=c++11 -g -Wall +CXX= g++ -std=c++0x -g -Wall + +%: %.cc + ${CXX} -o $@ $< ${TAGLIBFLAGS} .PRECIOUS: %.1 %.1: % @@ -34,7 +47,7 @@ all: ${SCRIPTS} ${MAN} ${ROFF} $< > $@ clean: - rm -f ${MAN} + rm -f ${MAN} apic-read apic-write strip-tags id3v2-grep install: $(addprefix ${DESTDIR}${bindir}/, ${SCRIPTS}) install: $(addprefix ${DESTDIR}${man1dir}/, $(addsuffix .1, ${SCRIPTS})) @@ -49,12 +62,6 @@ ${DESTDIR}${man1dir}/%: % ${DESTDIR}${man1dir} ${DESTDIR}${cat1dir}/%: % ${DESTDIR}${cat1dir} ${INSTALL_DATA} $< $@ -${DESTDIR}${man1dir}/fa-rip.1 ${DESTDIR}${man1dir}/fa-tags.1: - ln -sf fa-flacd.1 $@ - -${DESTDIR}${cat1dir}/fa-rip.0 ${DESTDIR}${cat1dir}/fa-tags.0: - ln -sf fa-flacd.0 $@ - ${DESTDIR}${bindir}: ${INSTALL_DIRECTORY} $@ @@ -69,4 +76,4 @@ uninstall: rm -f $(addprefix ${DESTDIR}${man1dir}/, $(addsuffix .1, ${SCRIPTS})) rm -f $(addprefix ${DESTDIR}${cat1dir}/, $(addsuffix .0, ${SCRIPTS})) -.PHONY: all clean install uninstall +.PHONY: all test clean install uninstall