-
Notifications
You must be signed in to change notification settings - Fork 37
/
makefile.win
41 lines (25 loc) · 1 KB
/
makefile.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PATH=$(PATH);\nosuch
all:check_env example\360SafeSetup.exe
check_env:check_vs check_nsis check_git
check_vs:
@cscript //Nologo check_env.vbs visual_studio 10.0 2>>error.txt
check_nsis:
@cscript //Nologo check_env.vbs nsis 3.0 2>>error.txt
check_git:
@cscript //Nologo check_env.vbs git 2.0 2>>error.txt
example\360SafeSetup.exe:example\plugin\nsduilib.dll example\360SafeSetup.nsi
@cd example && makensis 360SafeSetup.nsi && cd .. || cd ..
example\plugin\nsduilib.dll:src\nsduilib\nsduilib.dll
@ mkdir example\plugin 2>NUL || echo ""
@ copy /Y $** example\plugin\nsduilib.dll
src\nsduilib\nsduilib.dll:
@ pushd . && cd src\nsduilib && nmake /f makefile.win all && popd
clean_nsduilib:
@ pushd . && cd src\nsduilib && nmake /f makefile.win clean && popd
clibs:
@git clone https://github.com/jeppeter/clibs.git
clean:clean_nsduilib
@ rmdir /s /q src\winlib 2>NUL || echo "" >NUL
@ rmdir /s /q build 2>NUL || echo "" >NUL
@ del example\plugin\nsduilib.dll 2>NUL
@ del example\360SafeSetup.exe 2>NUL