[hackers] [lchat] clean up Makefile || Jan Klemkow

From: <git_AT_suckless.org>
Date: Sun, 3 Sep 2017 11:00:14 +0200 (CEST)

commit 717618148bab4de019bbe3a0fff9d073cb0c672d
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Sun Sep 3 10:59:45 2017 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
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
_AT_@ -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 $_AT_ lchat.o slackline.o $(LIBS)
 
_AT_@ -24,6 +20,7 @@ lchat.o: lchat.c
         $(CC) -c $(CFLAGS) -D_BSD_SOURCE -D_XOPEN_SOURCE -D_GNU_SOURCE \
             -o $_AT_ lchat.c
 
+filter: filter/indent
 filter/indent: filter/indent.c
         $(CC) $(CFLAGS) -o $_AT_ filter/indent.c
 
Received on Sun Sep 03 2017 - 11:00:14 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 03 2017 - 11:12:26 CEST