X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/3939160bda17c95bc52906832baeaf32df76f590..50c4d6cf6be87e8a21841a3779d892f30970bf93:/GNUmakefile?ds=inline diff --git a/GNUmakefile b/GNUmakefile index 18db058..3dd0ee3 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,17 @@ 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} -all: ${SCRIPTS} ${MAN} +%: %.cc + ${CXX} -Wall -o $@ $< ${TAGLIBFLAGS} .PRECIOUS: %.1 %.1: % @@ -49,12 +56,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} $@