From 38a9d0ec489925eb25b8a0c837b5230da4eb8a68 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 11 May 2020 21:43:44 -0400 Subject: add cuerecover --- Makefile | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0cb352c..9284898 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3