aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5aa3159..48a52ef 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ LDLIBS = -lgit2
-e 's:@DATE@:$(DATE):g' \
-e 's:@NAME@:$(NAME):g' \
< $< > $@
+ if [ -x $< ]; then chmod +x $@; fi
.c.o:
$(CC) $(CFLAGS) -o $@ -c $<
@@ -44,7 +45,7 @@ all-objects = $(lib-objects) src/main.o
t-objects = $(sources:.c=.to) src/tests-lib.to src/main.to
-all: libgistatic.a gistatic $(manpages)
+all: libgistatic.a gistatic src/gistatic $(manpages)
libgistatic.a: $(lib-objects)
$(AR) $(ARFLAGS) $@ $(lib-objects)
@@ -85,7 +86,7 @@ clean:
rm -rf \
public/ $(manpages) README.*.md CHANGELOG.*.md messages.mo \
vgcore.* tmp/ src/config.h $(all-objects) $(t-objects) \
- libgistatic.a gistatic gistatic-tests \
+ libgistatic.a gistatic gistatic-tests src/gistatic \
tests/resources/repositories/repo-1/.git \
tests/resources/repositories/repo-2/.git