jw-pkg/make/yapp.mk

17 lines
264 B
Makefile
Raw Normal View History

2006-07-02 15:26:16 +00:00
LOCAL_CPP += main.cpp
YAPP_CLASS ?= YApplication
all:
install:
clean: clean.yapp
distclean:
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 $<))" > $@