aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-31 16:38:38 -0300
committerEuAndreh <eu@euandre.org>2021-08-31 16:38:38 -0300
commitea37aa4b04bccc5baeafb79da6edf035317542a5 (patch)
tree37ea68c5bad0d2a6ff10bf085ea97ea2d9e74ecf
parentMakefile: Use libgistatic.a to build gistatic instead of the underlying objects (diff)
downloadgistatic-ea37aa4b04bccc5baeafb79da6edf035317542a5.tar.gz
gistatic-ea37aa4b04bccc5baeafb79da6edf035317542a5.tar.xz
Makefile: Change order of built artifact to reflect actual build order
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fc6efe4..f25ab61 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ TRANSLATIONS = pt fr eo
CONTRIBLANGS =
LDLIBS = -lgit2
+
.SUFFIXES: .in .to
.in:
@@ -35,7 +36,8 @@ all-objects = $(lib-objects) src/main.o
t-objects = $(sources:.c=.to) src/tests-lib.to src/main.to
-all: gistatic libgistatic.a $(manpages)
+all: libgistatic.a gistatic $(manpages)
+
libgistatic.a: $(lib-objects)
$(AR) $(ARFLAGS) $@ $(lib-objects)