Added buggy makefiles to build all binaries.

This commit is contained in:
NerdRat 2022-06-19 20:58:41 -05:00
parent d24220ede8
commit 0e195264d2
Signed by: NerdRat
GPG Key ID: 2FF292A70A383B0B
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,11 @@
SOURCES := $(wildcard *.c)
PROGRAMS := $(subst .c,,$(SOURCES))
all: $(SOURCES)
@echo $(SOURCES)
all: $(PROGRAMS)
@echo "Building sources: " $(SOURCES)
@echo "Built: " $(PROGRAMS)
.PHONY: clean
clean: $(PROGRAMS)
rm $(PROGRAMS)

View File

@ -8,3 +8,8 @@ subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: clean
clean: $(SUBDIRS)
$(MAKE) -C $< clean