diff options
-rw-r--r-- | windows/kbdneo2/Treiber/Makefile | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/windows/kbdneo2/Treiber/Makefile b/windows/kbdneo2/Treiber/Makefile index 525d14c..adf5c08 100644 --- a/windows/kbdneo2/Treiber/Makefile +++ b/windows/kbdneo2/Treiber/Makefile @@ -1,23 +1,20 @@ -all: kbdneo32 kbdneo64 kbdneo_ahk +COMMON_FILES=reg_backup.bat reg_backup.bat kbdneo2_install.reg kbdneo2_uninstall.reg +BUILD_FILES=kbdneo32.zip kbdneo64.zip Ahk2Exe/kbdneo_ahk.exe -kbdneo32: reg_backup.bat kbdneo2_install.reg kbdneo2_uninstall.reg 32bit_Windows/kbdneo2.dll - mkdir -p kbdneo32 - cp reg_backup.bat kbdneo2_install.reg kbdneo2_uninstall.reg 32bit_Windows/kbdneo2.dll kbdneo32 - cd kbdneo32; zip -r kbdneo32 * - mv kbdneo32/kbdneo32.zip . +all: $(BUILD_FILES) -kbdneo64: reg_backup.bat kbdneo2_install.reg kbdneo2_uninstall.reg 64bit_Windows/kbdneo2.dll - mkdir -p kbdneo64 - cp reg_backup.bat kbdneo2_install.reg kbdneo2_uninstall.reg 64bit_Windows/kbdneo2.dll kbdneo64 - cd kbdneo64; zip -r kbdneo64 * - mv kbdneo64/kbdneo64.zip . +kbdneo%.zip: $(COMMON_FILES) %bit_Windows/kbdneo2.dll + mkdir -p kbdneo$* + cp $(COMMON_FILES) $*bit_Windows/kbdneo2.dll kbdneo$* + cd kbdneo$*; zip -r kbdneo$* * + mv kbdneo$*/kbdneo$*.zip . -kbdneo_ahk: /home/erik/Ahk2Exe/Ahk2Exe.exe /home/erik/Ahk2Exe/AutoHotkeySC.bin /home/erik/Ahk2Exe/upx.exe AHK_für_kbdneo2/neo_enabled.ico AHK_für_kbdneo2/kbdneo2.ahk +Ahk2Exe/kbdneo_ahk.exe: AHK_für_kbdneo2/neo_enabled.ico AHK_für_kbdneo2/kbdneo2.ahk cd AHK_für_kbdneo2; wine /home/erik/Ahk2Exe/Ahk2Exe.exe /in kbdneo2.ahk /out kbdneo_ahk.exe /icon neo_enabled.ico clean: rm -rf kbdneo32 kbdneo64 - rm -f kbdneo32.zip kbdneo64.zip - rm -f AHK_für_kbdneo2/kbdneo_ahk.exe + rm -f $(BUILD_FILES) .PHONY: all clean + |