mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
yapp.mk: Find $(YAPP_CLASS).h in $(INCLUDE) path
This commit is contained in:
parent
d8d71a7ad6
commit
bec2fe4ecd
1 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
LOCAL_CPP += main.cpp
|
||||
YAPP_CLASS ?= YApplication
|
||||
YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h, $(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
|
||||
|
||||
all:
|
||||
install:
|
||||
|
|
@ -11,7 +12,10 @@ include $(MODDIR)/make/exe.mk
|
|||
clean.yapp:
|
||||
rm -f main.cpp
|
||||
|
||||
main.cpp: $(YAPP_CLASS).h
|
||||
echo -e "#include <YAppRunner.h>\n#include <$<>\nyapp_main($(basename $<))" > $@
|
||||
main.cpp: $(YAPP_CLASS_H)
|
||||
echo -e "#include <YAppRunner.h>\n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@
|
||||
|
||||
dings:
|
||||
echo $(YAPP_CLASS_H)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue