mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
Everywhere: Remove everything non-essential for "make clean all"
This commit removes everything not strictly necessary for running "make clean all" inside jw-build. packaging jw-devtest. This cuts the repo down from 24077 to 4725 lines of code. The idea is to 1) Further remove bloat from the remaining bits 2) Re-add what's necessary to build and package other essential repos. The decision should be based on whether or not jw-build can also be useful in a non-janware context. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c36c83c164
commit
bc883deed4
199 changed files with 0 additions and 18851 deletions
28
make/yapp.mk
28
make/yapp.mk
|
|
@ -1,28 +0,0 @@
|
|||
SRC_ALL_CPP += main.cpp
|
||||
YAPP_INCLUDE_DIR ?= .
|
||||
YAPP_CLASS ?= $(firstword $(basename $(notdir $(wildcard $(addprefix \
|
||||
$(YAPP_INCLUDE_DIR)/, YApp*.h App*.h Y*.h *.h)))))
|
||||
YAPP_CLASS_H ?= $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h,\
|
||||
$(YAPP_INCLUDE_DIR) $(subst -I,,$(FINAL_INCLUDE)))) $(YAPP_CLASS).h)
|
||||
YAPP_NAMESPACE ?=
|
||||
|
||||
ifneq ($(TARGET),mingw)
|
||||
FINAL_LDFLAGS += -rdynamic
|
||||
endif
|
||||
|
||||
include $(JWBDIR)/make/exe.mk
|
||||
|
||||
all: build_EXE
|
||||
install: install_EXE
|
||||
clean: clean.yapp
|
||||
distclean:
|
||||
|
||||
clean.yapp:
|
||||
$(RM) -f main.cpp
|
||||
|
||||
main.cpp: $(YAPP_CLASS_H)
|
||||
echo "#include \"$<\"" > $@.tmp
|
||||
if [ "$(YAPP_NAMESPACE)" ]; then echo "using namespace $(YAPP_NAMESPACE);" >> $@.tmp; fi
|
||||
echo "#include <ytools/YAppRunner.h>" >> $@.tmp
|
||||
echo "yapp_main($(YAPP_CLASS))" >> $@.tmp
|
||||
mv $@.tmp $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue