forked from Anime4000/IFME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (43 loc) · 1.43 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
# IFME make file
LBITS := $(shell getconf LONG_BIT)
CC=gcc
MONOCC=msbuild
MONOMK=mkbundle
MODE=Release
DIR=build
IFME=ifme7
all: clean compile copy fixmod
mv "$(DIR)" "release-ifme7"
zip -r "$(IFME).zip" "release-ifme7"
mv "release-ifme7" "$(DIR)"
clean:
rm -rf "$(DIR)"
rm -f "$(IFME).zip"
compile:
$(MONOCC) /nologo /verbosity:normal ifme.sln /target:Build /property:Configuration=$(MODE)
copy:
mkdir "$(DIR)"
tar -xvJf plugin.tar.xz -C "$(DIR)"
cp "license.txt" "$(DIR)"
cp "patents.txt" "$(DIR)"
cp "doc/readme.txt" "$(DIR)"
cp "sources/ifme.sh" "$(DIR)"
cp "sources/ifme.desktop" "$(DIR)"
cp "ifme/bin/Release/ifme.exe" "$(DIR)"
cp "ifme/bin/Release/FFmpegDotNet.dll" "$(DIR)"
cp "ifme/bin/Release/Newtonsoft.Json.dll" "$(DIR)"
cp "ifme/bin/Release/avisynth.json" "$(DIR)"
cp "ifme/bin/Release/format.json" "$(DIR)"
cp "ifme/bin/Release/language.json" "$(DIR)"
cp "ifme/bin/Release/mime.json" "$(DIR)"
cp -r "ifme/bin/Release/branding" "$(DIR)"
cp -r "ifme/bin/Release/lang" "$(DIR)"
cp -r "ifme/bin/Release/preset" "$(DIR)"
fixmod:
find "./$(DIR)" -type d -exec chmod 755 {} \;
find "./$(DIR)" -type f -exec chmod 644 {} \;
find "./$(DIR)" -type f -exec /bin/sh -c "file {} | grep -q executable && chmod +x {}" \;
find "./$(DIR)" -name "*.sh" -exec chmod +x {} \;
find "./$(DIR)" -name "*.desktop" -exec chmod +x {} \;
find "./$(DIR)" -name "*.exe" -exec chmod -x {} \;
find "./$(DIR)" -name "*.dll" -exec chmod -x {} \;