From bd67bf65b6bc1b03b1a587c25600c0147815967f Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 16 May 2019 11:05:22 +0200 Subject: [PATCH] cLib: Use a proper Makefile Instead of a custom make shell script. There is no big advantage right now. --- gj_common/.gitignore | 4 ++-- gj_common/Makefile | 4 ++++ gj_common/make.sh | 5 ----- 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 gj_common/Makefile delete mode 100755 gj_common/make.sh diff --git a/gj_common/.gitignore b/gj_common/.gitignore index eb7e2521..9f5a14da 100644 --- a/gj_common/.gitignore +++ b/gj_common/.gitignore @@ -1,2 +1,2 @@ -a.out -a.out* +test +test.dSYM diff --git a/gj_common/Makefile b/gj_common/Makefile new file mode 100644 index 00000000..e7f8cdc0 --- /dev/null +++ b/gj_common/Makefile @@ -0,0 +1,4 @@ +CC=clang + +test: gitjournal.c test.c + $(CC) -o test -g test.c gitjournal.c -lgit2 diff --git a/gj_common/make.sh b/gj_common/make.sh deleted file mode 100755 index 38133112..00000000 --- a/gj_common/make.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -set -euv - -clang -g test.c gitjournal.c -lgit2