diff --git a/Makefile b/Makefile index 6c98a715..fe3186e0 100644 --- a/Makefile +++ b/Makefile @@ -173,7 +173,7 @@ $(BUILD_DIR_UT)/%.o : %.cpp @mkdir -p $(@D) $(COMPILE.cc) -DADD_UNIT_TESTS -I$(SUBDIR_UT) $(OUTPUT_OPTION) $< -.PHONY: all install uninstall clean docs tests memcheck coverage upx +.PHONY: all install uninstall clean docs tests memcheck coverage upx srctar # "all" will also copy the produced binary into project root directory (to mimick old makefile) all: $(BUILD_EXE) @@ -273,3 +273,6 @@ clean: $(BUILD_DIR_UT)/$(SUBDIR_TESTS) \ $(BUILD_DIR_UT)/$(SUBDIR_COV) \ $(BUILD_DIR_UT) + +srctar: clean + tar cvfJ sjasmplus-1.20.3-src.tar.xz --exclude .git --exclude .cache --exclude build --exclude *.xz --exclude *.exe --exclude sjasmplus.res --exclude *.o --exclude LuaBridge/Tests --exclude LuaBridge/third_party ./* .cirrus.yml .git* diff --git a/TODO.txt b/TODO.txt index a106ced3..5d1f2182 100644 --- a/TODO.txt +++ b/TODO.txt @@ -7,8 +7,6 @@ Ped: https://www.codefactor.io/repository/github/z00m128/sjasmplus -makefile xz -> `tar cvfJ` src package (drop LuaBridge except LuaBridge/Source, drop build, etc..) - coverage keeps fluctuating because of io_nex.cpp `SNexFile::~SNexFile()`, probably depends on compiler's exact version and mood??? -> it's global `static SNexFile nex;` -> add maybe unit test instancing it as local variable to enforce exercising destructor? (not so simple, as unit test doesn't know the struct definition and it's private to io_nex.cpp)