Skip to content

Commit

Permalink
Merge pull request #1 from toniebox-reverse-engineering/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
SciLor authored Jul 28, 2023
2 parents 1017b5e + 29e2a82 commit 375385c
Show file tree
Hide file tree
Showing 30 changed files with 3,511 additions and 313 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,20 @@ preinstall: clean build
$(QUIET)mkdir $(PREINSTALL_DIR)/
$(QUIET)cp $(BIN_DIR)/* $(PREINSTALL_DIR)/
$(QUIET)cp -r $(CONTRIB_DIR)/* $(PREINSTALL_DIR)/
$(QUIET)cd $(PREINSTALL_DIR)/ \
&& find . -name ".gitkeep" -type f -delete \
&& cd -

zip: preinstall
mkdir $(ZIP_DIR)/
cd $(PREINSTALL_DIR)/ \
&& zip -r ../../$(ZIP_DIR)/release.zip * \
&& cd -

scan-build: clean
mkdir -p report
scan-build -o report make -j

.PHONY: auto
auto:
@echo "Entering ${CYAN}auto rebuild mode${NC}. Press Ctrl-C to exit."
Expand All @@ -244,7 +251,7 @@ auto:
echo "[ ${CYAN}AUTO${NC} ] Build"; \
make --no-print-directory -j; \
screen -S teddycloud_auto -dm; \
screen -S teddycloud_auto -X screen bash -c '$(BINARY); exec sh'; \
screen -S teddycloud_auto -X screen bash -c 'valgrind $(BINARY); exec sh'; \
while true; do \
modified_time=$$(stat -c "%Y" $(SOURCES) $(HEADERS) $(PROTO_FILES) $(THIS_MAKEFILE) | sort -r | head -n 1); \
if [ "$$modified_time" -gt "$$last_build_time" ]; then \
Expand All @@ -253,7 +260,7 @@ auto:
echo "[ ${CYAN}AUTO${NC} ] Rebuild"; \
make --no-print-directory -j; \
last_build_time=$$(date +%s); \
screen -S teddycloud_auto -X screen bash -c '$(BINARY); exec sh'; \
screen -S teddycloud_auto -X screen bash -c 'valgrind $(BINARY); exec sh'; \
echo "[ ${CYAN}AUTO${NC} ] Done"; \
fi; \
sleep 1; \
Expand Down
Binary file added contrib/www/img_unknown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 375385c

Please sign in to comment.