satan-gh60

Configuration for my GH60 mechanical keyboard.
git clone https://noxz.tech/git/satan-gh60.git
Log | Files | README | LICENSE

Makefile
1.POSIX:
2
3include config.mk
4
5options:
6	@echo satan-gh60 build options:
7	@echo "INSTALLATION DIRECTORY   = $(INSTALL_DIR)"
8	@echo "QMK REPOSITORY           = $(QMK_REPO)"
9	@echo "TKG REPOSITORY           = $(TKG_REPO)"
10
11all: clean
12	@echo [*] creating installation directory...
13	@mkdir -p "$(INSTALL_DIR)"
14	@echo
15	@echo [*] copying configuration...
16	@cp config.h keymap.c rules.mk "$(INSTALL_DIR)"
17	@echo
18	@echo [*] compiling firmware...
19	@sh -c 'cd "$(QMK_REPO)"; make clean; make satan:custom'
20	@echo
21
22flash: all
23	@echo [*] flashing firmware...
24	@sh -c 'cd "$(TKG_REPO)"; echo 'Y' | \
25		sudo ./reflash.sh "$(QMK_REPO)/.build/satan_custom.hex"'
26
27clean:
28	@echo [*] cleaning installation directory...
29	@[ -d "$(INSTALL_DIR)" ] && rm -r "$(INSTALL_DIR)"
30	@echo
31
32.PHONY: all options clean flash