Makefile: Add screenshot target

This commit is contained in:
Mathieu Maret 2021-11-14 14:54:20 +01:00
parent 4f5b5583cb
commit 070a42844a

View File

@ -72,12 +72,15 @@ debug:kernel kernel.sym disk.img
debug_test: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST debug_test: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
debug_test: debug debug_test: debug
screenshot:
shutter --window=qemu -o screenshot_1.png -e && zopflipng screenshot_1.png screenshot_1.png
clean: clean:
$(RM) kernel $(asmobj) $(gasmobj) $(cobj) $(deps) fd.iso kernel.sym $(RM) kernel $(asmobj) $(gasmobj) $(cobj) $(deps) fd.iso kernel.sym
$(RM) -r isodir $(RM) -r isodir
.PHONY: .PHONY:
userspace userspace screenshot
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)
-include $(deps) -include $(deps)