Soft'N'Design Software
/
projects
/
calc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bdcb95d
)
change perl program calls
author
Laurent Mazet
<mazet@softndesign.org>
Mon, 20 Feb 2023 22:29:47 +0000
(23:29 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Mon, 20 Feb 2023 22:29:47 +0000
(23:29 +0100)
makefile
patch
|
blob
|
blame
|
history
diff --git
a/makefile
b/makefile
index 48382b25d7b29d5c7885454b86285dac1812eaec..d5c8da526a2373b0da40b631ef8ceb607551cc4e 100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-94,7
+94,7
@@
gcov_%:
%.test: %.c
$(call TITLE, "Building $@")
# awk '/\/\* *test:.*\*\// { sub(/^.*\/\* *test: */, ""); sub(/ *\*\/.*$$/, ""); print }' $< > $@
%.test: %.c
$(call TITLE, "Building $@")
# awk '/\/\* *test:.*\*\// { sub(/^.*\/\* *test: */, ""); sub(/ *\*\/.*$$/, ""); print }' $< > $@
-
./
getcomments.pl -p='test:\s' -f='%' $< > $@
+
perl --
getcomments.pl -p='test:\s' -f='%' $< > $@
$(call PASS, SUCCESS)
test_%: %.test %.exe
$(call PASS, SUCCESS)
test_%: %.test %.exe
@@
-115,24
+115,24
@@
valgrind_%: %.exe
%.d: %.c
$(call TITLE, "Building $@")
$(CC) $(INCLUDES) -MM $< -o $@~
%.d: %.c
$(call TITLE, "Building $@")
$(CC) $(INCLUDES) -MM $< -o $@~
- echo ${<:.c=.o}: $(shell
./
getcomments.pl -p='depend:\s' -f='%' $<) >> $@~
+ echo ${<:.c=.o}: $(shell
perl --
getcomments.pl -p='depend:\s' -f='%' $<) >> $@~
mv $@~ $@
$(call PASS, SUCCESS)
%.ld: %.c
$(call TITLE, "Building $@")
mv $@~ $@
$(call PASS, SUCCESS)
%.ld: %.c
$(call TITLE, "Building $@")
- echo ${<:.c=.exe}: $(shell
./
getcomments.pl -p='linker:\s' -f='%' $< | awk '{for (i=1;i<=NF;i++) if ($$(i) ~ /.o$$/) printf " %s", $$(i)}') > $@
+ echo ${<:.c=.exe}: $(shell
perl --
getcomments.pl -p='linker:\s' -f='%' $< | awk '{for (i=1;i<=NF;i++) if ($$(i) ~ /.o$$/) printf " %s", $$(i)}') > $@
$(call PASS, SUCCESS)
%.o: %.c
$(call TITLE, "Building $@")
$(call PASS, SUCCESS)
%.o: %.c
$(call TITLE, "Building $@")
- $(CC) $(CFLAGS) $(INCLUDES) $(shell
./
getcomments.pl -p='cflags:\s' -f='%' $<) -c $< -o $@
+ $(CC) $(CFLAGS) $(INCLUDES) $(shell
perl --
getcomments.pl -p='cflags:\s' -f='%' $<) -c $< -o $@
$(call PASS, SUCCESS)
%.exe: %.o %.d
$(call TITLE, "Building $@")
$(call PASS, SUCCESS)
%.exe: %.o %.d
$(call TITLE, "Building $@")
- $(CC) $(LDFLAGS) $< $(shell
./
getcomments.pl -p='linker:\s' -f='%' ${<:.o=.c}) -o $@
+ $(CC) $(LDFLAGS) $< $(shell
perl --
getcomments.pl -p='linker:\s' -f='%' ${<:.o=.c}) -o $@
$(call PASS, SUCCESS)
## Phony
$(call PASS, SUCCESS)
## Phony