mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-24 12:14:11 +00:00
Add tools cleanup with parrent clean
This commit is contained in:
parent
2fba9848ae
commit
e620783a89
2
Makefile
2
Makefile
@ -103,7 +103,7 @@ all: $(TARGET).bin $(LDRDIR)
|
||||
@if [ ${BIN_SIZE} -gt 126296 ]; then echo "\e[1;33mPayload size exceeds limit!\e[0m"; fi
|
||||
@echo "--------------------------------------"
|
||||
|
||||
clean:
|
||||
clean: $(TOOLS)
|
||||
@rm -rf $(OBJS)
|
||||
@rm -rf $(BUILDDIR)
|
||||
@rm -rf $(OUTPUTDIR)
|
||||
|
@ -10,7 +10,7 @@ all: bin2c
|
||||
@echo > /dev/null
|
||||
|
||||
clean:
|
||||
rm -f bin2c
|
||||
@rm -f bin2c
|
||||
|
||||
bin2c: bin2c.c
|
||||
@$(NATIVE_CC) -o $@ bin2c.c
|
||||
|
@ -10,7 +10,7 @@ all: lz77
|
||||
@echo > /dev/null
|
||||
|
||||
clean:
|
||||
rm -f lz77
|
||||
@rm -f lz77
|
||||
|
||||
lz77: lz.c lz77.c
|
||||
@$(NATIVE_CC) -o $@ lz.c lz77.c
|
||||
|
@ -76,7 +76,7 @@ int main(int argc, char *argv[])
|
||||
if (nbytes > out_size)
|
||||
goto error;
|
||||
|
||||
if((out_file = fopen(filename,"w")) == NULL)
|
||||
if((out_file = fopen(filename,"wb")) == NULL)
|
||||
goto error;
|
||||
|
||||
if (fwrite(out_buf, 1, nbytes, out_file) != nbytes)
|
||||
|
Loading…
Reference in New Issue
Block a user