|
2 | 2 |
|
3 | 3 | OUTDIR ?= . |
4 | 4 |
|
5 | | -# This script is called during the build phase with OUTDIR set to the Resources |
6 | | -# folder of the app bundle. The default action is to simply copy all files |
7 | | -# named MacVim-*.icns to OUTDIR. |
8 | | -# |
9 | | -# The files in version control are all links to the MacVim-generic.icns file. |
10 | | -# In order to get prettier document icons, call "make all" in this folder |
11 | | -# before building. This will call the document generation program which |
12 | | -# overwrites the MacVim-*.icns links with actual icons (see make_icons.py). |
13 | | -# |
14 | | -# The Envy Code R font can be used to render small icons that are more legible. |
15 | | -# In order to use ECR, call "make getenvy" before calling "make all". This |
16 | | -# step requires an internet connection. |
17 | | - |
18 | 5 | $(OUTDIR)/MacVim-generic.icns: |
19 | 6 | cp -pR MacVim-*.icns "$(OUTDIR)"/ |
20 | 7 |
|
21 | | -all: make_icons.py vim-noshadow-512.png loadfont.so |
22 | | - rm -f MacVim-*.icns |
23 | | - $(MAKE) -C makeicns |
24 | | - /usr/bin/python make_icons.py "$(OUTDIR)" |
25 | | - |
26 | | -loadfont.so: loadfont.c |
27 | | - /usr/bin/python setup.py install --install-lib . |
28 | | - |
29 | | -getenvy: Envy\ Code\ R\ Bold.ttf |
30 | | - |
31 | | -Envy\ Code\ R\ Bold.ttf: EnvyCodeR.zip |
32 | | - unzip -jo EnvyCodeR.zip |
33 | | - # unzip uses the file date from the zip file. Change the file date to |
34 | | - # "now", so that the zip is not unzipped in every `make` run.` |
35 | | - touch Envy\ Code\ R\ Bold.ttf |
36 | | - |
37 | | -ENVYCODE_URL=http://download.damieng.com/fonts/original/EnvyCodeR-PR7.zip |
38 | | -EnvyCodeR.zip: |
39 | | - curl ${ENVYCODE_URL} --location -o EnvyCodeR.zip |
40 | | - |
41 | | -clean: |
42 | | - $(MAKE) -C makeicns clean |
43 | | - rm -f "$(OUTDIR)"/MacVim-*.icns loadfont.so *.pyc \ |
44 | | - EnvyCodeR.zip *.ttf *.reg *.txt |
45 | | - rm -rf *.egginfo build # Created by setup.py |
| 8 | +all: |
0 commit comments