aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-01 10:10:01 -0300
committerEuAndreh <eu@euandre.org>2021-09-01 10:10:04 -0300
commit201b2deb118300ab12e0c9ed3430225e13280bca (patch)
treeda07d910fdeb85dda01233b5beddba391f39fa17
parentsrc/remembering.in: Add empty line on help text (diff)
downloadremembering-201b2deb118300ab12e0c9ed3430225e13280bca.tar.gz
remembering-201b2deb118300ab12e0c9ed3430225e13280bca.tar.xz
Makefile: Use chmod when generating src/remembering instead of afterwards
Now running "make" for the second time will say everything is up-to-date, instead of always changing the permission again and again.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 47a1db2..42bb73a 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ TRANSLATIONS = pt fr eo
.in:
sed -e 's:@VERSION@:$(VERSION):g' -e 's:@DATE@:$(DATE):g' < $< > $@
+ if [ -x $< ]; then chmod +x $@; fi
.c:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -o $@ $< $(LDLIBS)
@@ -31,7 +32,6 @@ manpages.in = $(manpages.en.in) \
manpages = $(manpages.in:.in=)
all: src/remembering src/remembering-c $(manpages)
- chmod +x src/remembering
run-tests: src/remembering-c.c
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -DTEST -o $@ $? $(LDLIBS)