@echo
@exit 1
-kmod:
+$(KDIR)/build:
+ [ -e /usr/src/linux-$(KVER)/Makefile ] && sudo ln -sf /usr/src/linux-$(KVER) $@ || exit 0
+ [ -e /usr/src/$(KVER)/Makefile ] && sudo ln -sf /usr/src/$(KVER) $@ || exit 0
+ [ -e $@ ] || exit 1
+
+kmod: $(KDIR)/build
$(MAKE) -C $(KDIR)/build M=$(CWD) modules
$(MODNAME).ko: $(MODSOURCE) $(MODNAME).h
#include "sapphire.h"
#define SAPPHIRE_NAME "sapphire"
-#define SAPPHIRE_VERSION "7.2"
+#define SAPPHIRE_VERSION "7.3"
/*
* "LONGKEY": Any button can be used to generate a second, different keycode,