Constness changes
[melted] / Makefile
1 SUBDIRS = src/framework \
2 src/inigo \
3 src/valerie \
4 src/miracle \
5 src/humperdink \
6 src/albino \
7 src/modules \
8 profiles
9
10 all clean:
11 list='$(SUBDIRS)'; \
12 for subdir in $$list; do \
13 $(MAKE) -s -C $$subdir depend || exit 1; \
14 $(MAKE) -C $$subdir $@ || exit 1; \
15 done
16
17 distclean:
18 rm mlt-config packages.dat; \
19 list='$(SUBDIRS)'; \
20 for subdir in $$list; do \
21 $(MAKE) -C $$subdir $@ || exit 1; \
22 done; \
23 rm config.mak;
24
25 dist-clean: distclean
26
27 include config.mak
28
29 install:
30 install -d "$(DESTDIR)$(prefix)/bin"
31 install -d "$(DESTDIR)$(prefix)/include"
32 install -d "$(DESTDIR)$(libdir)"
33 install -d "$(DESTDIR)$(libdir)/mlt"
34 install -d "$(DESTDIR)$(libdir)/pkgconfig"
35 install -d "$(DESTDIR)$(prefix)/share/mlt"
36 install -c -m 755 mlt-config "$(DESTDIR)$(bindir)"
37 install -c -m 644 *.pc "$(DESTDIR)$(libdir)/pkgconfig"
38 install -m 644 packages.dat "$(DESTDIR)$(prefix)/share/mlt/"
39 list='$(SUBDIRS)'; \
40 for subdir in $$list; do \
41 $(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
42 done; \
43 if test -z "$(DESTDIR)"; then \
44 /sbin/ldconfig 2> /dev/null || true; \
45 fi
46
47 uninstall:
48 rm -f "$(DESTDIR)$(bindir)"/mlt-config
49 rm -f "$(DESTDIR)$(libdir)/pkgconfig/mlt-*.pc"
50 list='$(SUBDIRS)'; \
51 for subdir in $$list; do \
52 $(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
53 done
54 rm -rf "$(DESTDIR)$(prefix)/include/mlt"
55 rm -rf "$(DESTDIR)$(prefix)/share/mlt"
56
57 dist:
58 [ -d "mlt-$(version)" ] && rm -rf "mlt-$(version)" || echo
59 svn export http://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt "mlt-$(version)"
60 svn log > "mlt-$(version)/ChangeLog"
61 tar -cvzf "mlt-$(version).tar.gz" "mlt-$(version)"