restructure project
This commit is contained in:
parent
a317d8cce1
commit
960dc907e9
87 changed files with 23 additions and 17 deletions
|
@ -1,22 +0,0 @@
|
|||
.PHONY: all run clean latest $(ALL)
|
||||
|
||||
ALL = $(basename $(notdir $(shell find tests/. -name "*.c")))
|
||||
|
||||
all: $(addprefix Makefile., $(ALL))
|
||||
@echo "" $(ALL)
|
||||
|
||||
$(ALL): %: Makefile.%
|
||||
|
||||
Makefile.%: tests/%.c latest
|
||||
@/bin/echo -e "NAME = $*\nSRCS = $<\nLIBS += klib\ninclude $${AM_HOME}/Makefile" > $@
|
||||
-@make -s -f $@ ARCH=$(ARCH) $(MAKECMDGOALS)
|
||||
-@rm -f Makefile.$*
|
||||
|
||||
# cancel rules included by $(AM_HOME)/Makefile.check
|
||||
image: ;
|
||||
default $(MAKECMDGOALS): all ;
|
||||
|
||||
clean:
|
||||
rm -rf Makefile.* build/
|
||||
|
||||
latest:
|
Loading…
Add table
Add a link
Reference in a new issue