forked from mltframework/mlt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
68 lines (60 loc) · 1.75 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
SUBDIRS = src/framework \
src/mlt++ \
src/melt \
src/modules \
src/swig \
profiles
all clean:
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) -s -C $$subdir depend || exit 1; \
$(MAKE) -C $$subdir $@ || exit 1; \
done
distclean:
rm mlt-config packages.dat; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) -C $$subdir $@ || exit 1; \
done; \
rm config.mak;
dist-clean: distclean
include config.mak
install:
install -d "$(DESTDIR)$(prefix)/bin"
install -d "$(DESTDIR)$(prefix)/include"
install -d "$(DESTDIR)$(libdir)"
install -d "$(DESTDIR)$(moduledir)"
ifeq ($(extra_versioning), true)
ln -s "$(moduledir)" "$(DESTDIR)$(unversionedmoduledir)"
endif
install -d "$(DESTDIR)$(libdir)/pkgconfig"
install -d "$(DESTDIR)$(mltdatadir)"
ifeq ($(extra_versioning), true)
ln -s "$(mltdatadir)" "$(DESTDIR)$(unversionedmltdatadir)"
endif
install -c -m 644 *.pc "$(DESTDIR)$(libdir)/pkgconfig"
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
done
cp -R presets "$(DESTDIR)$(mltdatadir)"
uninstall:
rm -f "$(DESTDIR)$(bindir)"/mlt-config
rm -f "$(DESTDIR)$(libdir)"/pkgconfig/mlt-framework.pc
rm -f "$(DESTDIR)$(libdir)"/pkgconfig/mlt++.pc
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
done
rm -rf "$(DESTDIR)$(prefix)/include/mlt"
rm -rf "$(DESTDIR)$(mltdatadir)"
ifeq ($(compat_dirs), true)
rm -rf "$(DESTDIR)$(prefix)/share/mlt"
endif
dist:
git archive --format=tar --prefix=mlt-$(version)/ v$(version) | gzip >mlt-$(version).tar.gz
validate-yml:
for file in $$(find src/modules -type f -name \*.yml); do \
echo "validate: $$file"; \
kwalify -f src/framework/metaschema.yaml $$file || exit 1; \
done