Skip to content

Commit

Permalink
Makefile: srctar helper archived in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ped7g committed Jun 21, 2023
1 parent 2ba8f09 commit 8b967ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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*
2 changes: 0 additions & 2 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b967ef

Please sign in to comment.