From 4ef162798fbdbf43efc8144deaaedf7076b10d98 Mon Sep 17 00:00:00 2001 From: Alexander Epaneshnikov Date: Sat, 9 May 2020 20:30:36 +0300 Subject: [PATCH] clean makefile get rid of unnecessary targets. add warning options. --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a2680ca..d8d47a5 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,10 @@ PREFIX = /usr/local BINDIR = ${PREFIX}/bin MANDIR = ${PREFIX}/share/man SRC_DIR = src - DEPFLAGS = -MMD -WARNFLAGS = -Wall +WARNFLAGS = -Wall -Wpedantic \ + -Wextra + CFLAGS += ${DEPFLAGS} ${WARNFLAGS} LDLIBS = -lespeak-ng -lpthread -lasound -lm @@ -12,16 +13,12 @@ LDLIBS = -lespeak-ng -lpthread -lasound -lm INSTALL = install BINMODE = 0755 MANMODE = 0644 -CHANGELOG_LIMIT?= --after="1 year ago" SRC = $(wildcard $(SRC_DIR)/*.c) OBJECTS := $(patsubst %.c,%.o,$(wildcard $(SRC_DIR)/*.c)) all: espeakup -changelog: - git log ${CHANGELOG_LIMIT} --format=full > ChangeLog - install: espeakup ${INSTALL} -d ${DESTDIR}${BINDIR} ${INSTALL} -m ${BINMODE} $< ${DESTDIR}${BINDIR}