Skip to content

Commit

Permalink
Update Makefile for release
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkya2 committed Mar 4, 2024
1 parent d199ef3 commit 9e509e7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,15 @@ losetup.o: loopdrv.h

clean:
-rm -f *.o *.SYS *.elf* *.x
-rm -rf build

.PHONY: all clean
RELFILE := loopdrv-$(GIT_REPO_VERSION)

release: all
rm -rf build && mkdir build
iconv -f utf-8 -t cp932 README.md | sed 's/$$/\r/' > build/README.txt
cp LOOPDRV.SYS build
cp losetup.x build
(cd build; zip -r ../$(RELFILE).zip *)

.PHONY: all clean release

0 comments on commit 9e509e7

Please sign in to comment.