Kinda extra credit ex12

This commit is contained in:
Dan Buch 2024-04-18 18:49:10 -04:00
parent 32e70e96ce
commit df5d4f5a1f
Signed by: meatballhat
GPG Key ID: A12F782281063434
2 changed files with 9 additions and 9 deletions

View File

@ -15,16 +15,16 @@ build: $(BUILD_TARGETS)
.PHONY: gtest
gtest:
@$(foreach bt, \
$(TEST_TARGETS), \
printf '\n==> $(bt)\n' && $(GDBRUN) ./$(bt) && \
) \
@$(foreach bt, $(TEST_TARGETS), make .gtest.$(bt) &&) \
printf '\ngYAY\n'
.gtest.%:
printf '\n==> %s\n' "$*" && $(GDBRUN) ./$*
.PHONY: test
test:
@$(foreach bt, \
$(TEST_TARGETS), \
printf '\n==> %s\n' "$(bt)" && ./$(bt) && \
) \
@$(foreach bt, $(TEST_TARGETS), make .test.$(bt) &&) \
printf '\nYAY\n'
.test.%:
printf '\n==> %s\n' "$*" && ./$*

View File

@ -7,7 +7,7 @@ int main(int argc, char *argv[])
char full_name[] = {
'Z', 'e', 'd',
' ', 'A', '.', ' ',
'S', 'h', 'a', 'w',
'S', 'h', 'a', 'w', '\0',
};
// WARNING: On some systems you may have to change the