commit 717618148bab4de019bbe3a0fff9d073cb0c672d
Author:     Jan Klemkow <[email protected]>
AuthorDate: Sun Sep 3 10:59:45 2017 +0200
Commit:     Jan Klemkow <[email protected]>
CommitDate: Sun Sep 3 10:59:45 2017 +0200

    clean up Makefile

diff --git a/Makefile b/Makefile
index b32e55e..f153483 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,18 @@
-CC ?= cc
-CFLAGS = -std=c99 -pedantic -Wall -Wextra -g
+include config.mk
 
-# utf.h
-CFLAGS += -I/usr/local/include
-LIBS = -L/usr/local/lib -lutf
-
-.PHONY: all clean test debug
+.PHONY: all install filter clean test
 
 all: lchat
 clean:
        rm -f lchat *.o *.core sl_test filter/indent
 
+install: lchat
+       cp lchat ${BINDIR}
+       cp lchat.1 ${MAN1DIR}
+
 test: sl_test
        ./sl_test
 
-debug:
-       gdb lchat lchat.core
-
 lchat: lchat.o slackline.o
        $(CC) -o $@ lchat.o slackline.o $(LIBS)
 
@@ -24,6 +20,7 @@ lchat.o: lchat.c
        $(CC) -c $(CFLAGS) -D_BSD_SOURCE -D_XOPEN_SOURCE -D_GNU_SOURCE \
            -o $@ lchat.c
 
+filter: filter/indent
 filter/indent: filter/indent.c
        $(CC) $(CFLAGS) -o $@ filter/indent.c
 

Reply via email to