From 201b2deb118300ab12e0c9ed3430225e13280bca Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 1 Sep 2021 10:10:01 -0300 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3