-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
40 lines (31 loc) · 908 Bytes
/
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
# DON'T FORGET to update the version number in guiguts.pl too
VERSION=1.6.3
# zip utility to use
ZIP=zip -rv9
# files to include from the root
INCLUDES=CHANGELOG.md INSTALL.md UPGRADE.md LICENSE.txt README.md THANKS.md TROUBLESHOOTING.md
TARGETS= generic win mac
all:
@for os in $(TARGETS); do \
echo "# Making $$os"; \
$(MAKE) $$os; \
done
$(TARGETS): common
# Build tools
mkdir guiguts/tools
./tools/package-tools.sh $@ $$(pwd)/guiguts/tools
./tools/adjust-package-contents.sh $@ $$(pwd)/guiguts
# Create final zip
$(ZIP) guiguts-$@-$(VERSION).zip guiguts
common: clean
mkdir guiguts
# Start with src/
cp -a src/* guiguts
# Remove untracked files & directories that might be in src/
rm -rf guiguts/tools/ guiguts/header.txt guiguts/setting.rc guiguts/data/labels_en.rc
# Copy common tools
cp -a $(INCLUDES) guiguts
clean:
rm -rf guiguts
distclean: clean
rm -rf guiguts-*.zip