diff options
author | B. Watson <yalhcru@gmail.com> | 2020-05-11 21:43:44 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2020-05-11 21:43:44 -0400 |
commit | 38a9d0ec489925eb25b8a0c837b5230da4eb8a68 (patch) | |
tree | 8ad6118bf451b1fc85c8d367bb7babe828c22273 /Makefile | |
parent | 0b19a8ae810169cbdfd15ba79b3e7165e40cf535 (diff) | |
download | miragextract-38a9d0ec489925eb25b8a0c837b5230da4eb8a68.tar.gz |
add cuerecover
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -39,7 +39,10 @@ RST2HTML=rst2html4.py PROJ=miragextract VERSION=0.1.0 -DOCS=README FAQ ChangeLog LICENSE $(PROJ).html +BINS=$(PROJ) cuerecover +MANS=$(PROJ).1 cuerecover.1 +HTMLS=$(PROJ).html cuerecover.html +DOCS=README FAQ ChangeLog LICENSE $(PROJ).html cuerecover.html SNDFILE_CFLAGS:=$(shell pkg-config --cflags sndfile) SNDFILE_LIBS:=$(shell pkg-config --libs sndfile) @@ -47,20 +50,25 @@ SNDFILE_LIBS:=$(shell pkg-config --libs sndfile) MIRAGE_CFLAGS:=$(shell pkg-config --cflags libmirage) MIRAGE_LIBS:=$(shell pkg-config --libs libmirage) -CFLAGS=-Wall $(OPTFLAGS) $(MIRAGE_CFLAGS) $(SNDFILE_CFLAGS) -DVERSION=\"$(VERSION)\" +PROJCFLAGS=-Wall $(OPTFLAGS) -DVERSION=\"$(VERSION)\" +CFLAGS=$(PROJCFLAGS) $(MIRAGE_CFLAGS) $(SNDFILE_CFLAGS) LDFLAGS=$(MIRAGE_LIBS) $(SNDFILE_LIBS)$ $(LDEXTRA) -all: $(PROJ) +all: $(BINS) -man: $(PROJ).1 +man: $(MANS) -html: $(PROJ).html +html: $(HTMLS) -$(PROJ).1: $(PROJ).rst - $(RST2MAN) $(PROJ).rst > $(PROJ).1 +# don't need to use libmirage and libsndfile flags with this one +cuerecover: cuerecover.c + $(CC) $(PROJCFLAGS) -o $@ $< -$(PROJ).html: $(PROJ).rst - $(RST2HTML) $(PROJ).rst > $(PROJ).html +%.1: %.rst + $(RST2MAN) $< > $@ || rm -f $@ + +%.html: %.rst + $(RST2HTML) $< > $@ || rm -f $@ ifeq ($(shell whoami),root) CHOWN=chown |