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
|
LOCAL_CPP += main.cpp
|
||||||
YAPP_CLASS ?= YApplication
|
YAPP_CLASS ?= YApplication
|
||||||
|
YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h, $(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
install:
|
install:
|
||||||
|
|
@ -11,7 +12,10 @@ include $(MODDIR)/make/exe.mk
|
||||||
clean.yapp:
|
clean.yapp:
|
||||||
rm -f main.cpp
|
rm -f main.cpp
|
||||||
|
|
||||||
main.cpp: $(YAPP_CLASS).h
|
main.cpp: $(YAPP_CLASS_H)
|
||||||
echo -e "#include <YAppRunner.h>\n#include <$<>\nyapp_main($(basename $<))" > $@
|
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