-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
47 lines (36 loc) · 911 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
41
42
43
44
45
46
47
# build a combined plugin that reads all formats
SUBDIRS = IO
SUBDIRS_NOMULTI = \
EXR \
FFmpeg \
OCIO \
OIIO \
SeExpr \
PFM \
PNG
all: subdirs
.PHONY: nomulti subdirs clean install install-nomulti uninstall uninstall-nomulti $(SUBDIRS)
nomulti:
$(MAKE) $(MFLAGS) SUBDIRS="$(SUBDIRS_NOMULTI)"
subdirs: $(SUBDIRS)
$(SUBDIRS):
(cd $@ && $(MAKE) $(MFLAGS))
clean:
@for i in $(SUBDIRS) $(SUBDIRS_NOMULTI); do \
echo "(cd $$i && $(MAKE) $(MFLAGS) $@)"; \
(cd $$i && $(MAKE) $(MFLAGS) $@); \
done
install:
@for i in $(SUBDIRS) ; do \
echo "(cd $$i && $(MAKE) $(MFLAGS) $@)"; \
(cd $$i && $(MAKE) $(MFLAGS) $@); \
done
install-nomulti:
$(MAKE) SUBDIRS="$(SUBDIRS_NOMULTI)" install
uninstall:
@for i in $(SUBDIRS) ; do \
echo "(cd $$i && $(MAKE) $(MFLAGS) $@)"; \
(cd $$i && $(MAKE) $(MFLAGS) $@); \
done
uninstall-nomulti:
$(MAKE) $(MFLAGS) SUBDIRS="$(SUBDIRS_NOMULTI)" uninstall