-
Notifications
You must be signed in to change notification settings - Fork 380
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (26 loc) · 776 Bytes
/
Makefile
File metadata and controls
29 lines (26 loc) · 776 Bytes
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
ifeq ($(OS),Windows_NT)
RAR := "C:/Program Files/WinRAR/Rar.exe"
GIT := "C:/Program Files/Git/cmd/git.exe"
PACKAGE_EXT := rar
PACKAGE_CMD = $(RAR) a -ma5 -md1024 -m5 -mt32 -htb -s -rr1p -QO+ $@ $^
PACKAGE_DEPS := .git update.bat README.md README_EN.md MinGit
else
GIT := git
PACKAGE_EXT := tar.gz
PACKAGE_CMD = tar -czf $@ $^
PACKAGE_DEPS := update.sh README.md README_EN.md
endif
FactoryBluePrints.$(PACKAGE_EXT): $(PACKAGE_DEPS)
$(GIT) repack -a -d --window-memory=0 --depth=4095
$(PACKAGE_CMD)
repack:
$(GIT) config core.compression 9
$(GIT) config core.looseCompression 9
$(GIT) config pack.compression 9
$(GIT) repack -a -d -f -F --window-memory=0 --depth=4095
clean:
ifeq ($(OS),Windows_NT)
rm *.rar
else
rm *.tar.gz
endif