summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-04-07 09:01:46 -0400
committerDave Reisner <d@falconindy.com>2011-04-07 09:01:55 -0400
commitbad9776095209b2174b82cad9045f7d4a7a785fc (patch)
treea9e9a21b2eeaa12d645a1f9f176aa00863205e4f
parente85f19c49684fb4d371b9b3adcd66752faed4998 (diff)
downloadexpac-bad9776095209b2174b82cad9045f7d4a7a785fc.tar.xz
build-sys: cleanup
-rw-r--r--Makefile5
-rw-r--r--config.mk6
2 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 88cc8b8..6936064 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ include config.mk
SRC = expac.c
OBJ = ${SRC:.c=.o}
+DISTFILES = expac.c README.pod Makefile config.mk
+
all: expac doc
.c.o:
@@ -21,7 +23,7 @@ install: expac
dist: clean
mkdir expac-${VERSION}
- cp Makefile expac.1 expac.c expac-${VERSION}
+ cp ${DISTFILES} expac-${VERSION}
sed "s/^VERSION = .*/VERSION = ${VERSION}/" config.mk > expac-${VERSION}/config.mk
tar cf - expac-${VERSION} | gzip -9 > expac-${VERSION}.tar.gz
rm -rf expac-${VERSION}
@@ -29,3 +31,4 @@ dist: clean
clean:
${RM} ${OBJ} expac expac.1
+.PHONY: all clean dist doc install doc
diff --git a/config.mk b/config.mk
index 3d66992..3a90cd4 100644
--- a/config.mk
+++ b/config.mk
@@ -6,7 +6,7 @@ PREFIX ?= /usr/local
MANPREFIX ?= ${PREFIX}/share/man
# compiler flags
-CC ?= c99
+CC ?= gcc
CPPFLAGS += -DVERSION=\"${VERSION}\"
-CFLAGS += -std=c99 -g -pedantic -Wall -Wextra ${CPPFLAGS}
-LDFLAGS += -lalpm
+CFLAGS += -std=c99 -g -pedantic -Wall -Wextra -Werror ${CPPFLAGS}
+LDFLAGS += -lalpm