Skip to content

Instantly share code, notes, and snippets.

@Lytol
Created March 6, 2015 06:05

Revisions

  1. Lytol created this gist Mar 6, 2015.
    19 changes: 19 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    SHELL = /bin/bash

    all: build

    prepare:
    cp *.kll controller/kll/layouts/
    cd build; cmake ../controller; cd ..

    build: prepare
    cd build; make; cd ..
    cp build/kiibohd.dfu.bin lytol.bin

    flash:
    dfu-util -D lytol.bin

    clean:
    rm -rf lytol.bin build/*

    .PHONY: prepare build flash clean