-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
83 lines (64 loc) · 2.88 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
SUBDIRS = GMIC_OFX
GMICSOURCES = CImg.h gmic.cpp gmic.h gmic_stdlib.h
GMICVER=2.8.4
#GMICVER=2.9.0 # config file changed & broke plugin (shows 0 plugins)
GMICSRC=gmic_$(GMICVER).tar.gz
GMICSRCDIR=gmic-$(GMICVER)
GITSOURCES = gmic_libc.cpp gmic_libc.h gmic_stdlib_gmic.h
all: subdirs
.PHONY: sources subdirs clean install uninstall $(SUBDIRS)
nomulti:
$(MAKE) SUBDIRS="$(SUBDIRS_NOMULTI)"
subdirs: $(SUBDIRS)
$(SUBDIRS): sources
(cd $@ && $(MAKE))
clean:
@for i in $(SUBDIRS) $(SUBDIRS_NOMULTI); do \
echo "(cd $$i && $(MAKE) $@)"; \
(cd $$i && $(MAKE) $@); \
done
install:
@for i in $(SUBDIRS) ; do \
echo "(cd $$i && $(MAKE) $@)"; \
(cd $$i && $(MAKE) $@); \
done
uninstall:
@for i in $(SUBDIRS) ; do \
echo "(cd $$i && $(MAKE) $@)"; \
(cd $$i && $(MAKE) $@); \
done
sources: $(GMICSOURCES) $(GITSOURCES)
$(GMICSRC):
curl --retry 5 --retry-all-errors -L -s -S -o $@ http://gmic.eu/files/source/$(GMICSRC)
$(GMICSOURCES): $(GMICSRC)
tar --strip-components 2 -zxvf $< $(patsubst %,$(GMICSRCDIR)/src/%, $@)
distclean: clean
-rm $(GMICSRC) $(GMICSOURCES) $(GITSOURCES)
################
# gmic-community
# commit 249ac90ac824eb99d233d8738f95658e92f270c9 is 20 dec 2017
# commit d6ef1347c0c200281122e438c0188d396445486c is 23 apr 2018
# commit 09c9f56ba2fe02568667d0cf03c132c828c67bef is 15 may 2018
# commit cb58e3713bf5c1dda100edd200fec063a9067b00 is 6 jun 2018
# commit ccfb3190aa414c4c09db643e1ea6ff446dbbd67f is 26 jun 2018
# commit 67f4417aebb7f789473121855179e3cfd5b38a20 is 9 may 2019 (gmic 2.6.2)
# commit 730aada04c09befe89190574ef7457927f83e840 if 5 jun 2019 (gmic 2.6.5)
# commit 6ce0f346dbfd9012d131bd07d30866136318204f is 20 jun 2019 (gmic 2.6.7)
# commit 91e4cf77ae4ff9885152d468d080c8d557902241 is 12 aug 2019 (gmic 2.7.0)
# commit 52a2635def99f391823222eaaf925bcbb4cc5166 is 21 sep 2019 (gmic 2.7.2)
# commit 4cb2a8aaf931c86f57de8c843ed2c9bce0657197 is 11 oct 2019 (gmic 2.7.4)
# commit 7a7e08e3a021050f4ef72d05edf163303131e03e is 5 dec 2019 (gmic 2.8.0)
# commit 09f1dda72ce37d8452ba015732a5de04b7760fa4 is 16 dec 2019 (gmic 2.8.1)
# commit 2c643575e212b5a677e481769f3fd896f6cc8ecb is 11 jan 2020 (gmic 2.8.2)
# commit 09ffcc59fcbaae0546eedeb81bc076e51f10a4fa is 21 jan 2020 (gmic 2.8.3)
# commit 6a9d0e344162af3376aee7b652721d972a070e6b is 10 feb 2020 (gmic 2.8.4)
# commit 003f70a0be5b5f6758a52edc77a129f5b2692887 is 27 mar 2020 (gmic 2.9.0)
GMICCOMMUNITYVERSION=6a9d0e344162af3376aee7b652721d972a070e6b
#GMICCOMMUNITYVERSION=003f70a0be5b5f6758a52edc77a129f5b2692887 # shows 0 plugins
GMIC_BASE_URL=https://raw.githubusercontent.com/GreycLab/gmic-community/$(GMICCOMMUNITYVERSION)/libcgmic
gmic_libc.cpp: gmic_libc.h gmic_stdlib_gmic.h
curl --retry 5 --retry-all-errors -L -s -S -o $@ $(GMIC_BASE_URL)/$@
gmic_libc.h:
curl --retry 5 --retry-all-errors -L -s -S -o $@ $(GMIC_BASE_URL)/$@
gmic_stdlib_gmic.h:
curl --retry 5 --retry-all-errors -L -s -S -o $@ $(GMIC_BASE_URL)/$@