forked from mltframework/mlt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (50 loc) · 1.57 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
SUBDIRS = src/framework \
src/mlt++ \
src/melt \
src/modules \
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)$(libdir)/mlt"
install -d "$(DESTDIR)$(libdir)/pkgconfig"
install -d "$(DESTDIR)$(prefix)/share/mlt"
install -c -m 644 *.pc "$(DESTDIR)$(libdir)/pkgconfig"
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
done; \
if test -z "$(DESTDIR)"; then \
/sbin/ldconfig -n "$(DESTDIR)$(libdir)" 2> /dev/null || true; \
fi
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)$(prefix)/share/mlt"
dist:
#[ -d "mlt-$(version)" ] && rm -rf "mlt-$(version)" || echo
#svn export http://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt "mlt-$(version)"
#tar -cvzf "mlt-$(version).tar.gz" "mlt-$(version)"
git archive --format=tar --prefix=mlt-$(version)/ HEAD | gzip >mlt-$(version).tar.gz