picon dirs, new cinfinity picons, plugin info, rework text drawing, show msg, compres...
[goodguy/history.git] / cinelerra-5.1 / Makefile.am
1 CFLAGS_ := $(CFLAGS)
2 CXXFLAGS_ := $(CXXFLAGS)
3 LDFLAGS_ := $(LDFLAGS)
4
5 export CFLAGS_ CXXFLAGS_ LDFLAGS_
6 unexport CFLAGS CXXFLAGS LDFLAGS
7
8 AM_MAKEFLAGS := -j$(WANT_JOBS)
9
10 AUTOMAKE_OPTIONS=foreign
11 ACLOCAL_AMFLAGS = -I m4
12
13 SUBDIRS = thirdparty libzmpeg3 mpeg2enc mplexlo \
14         db guicast cinelerra plugins doc po db/utils
15
16 BUILT_SOURCES := bin
17 bin:
18         mkdir -p bin bin/applications bin/pixmaps
19
20 clean-generic:
21         rm -rf bin
22
23 inst_sh := $(CURDIR)/inst.sh
24
25 install:        binstall $(sinstall)
26
27 uninstall:      buninstall $(suninstall)
28
29 .PHONY: binstall cinstall cuninstall dinstall
30 export mkinstalldirs install_sh inst_sh
31
32 # install to bin
33 binstall:       install-recursive
34         cp -a COPYING README models ffmpeg msg info tips bin/.
35         sed -e 's/\<cin\>/$(WANT_CIN)/g' < image/cin.desktop \
36                 > "bin/applications/$(WANT_CIN).desktop"
37         cp -a image/cin.svg "bin/pixmaps/$(WANT_CIN)".svg
38         cp -a image/cin.xpm "bin/pixmaps/$(WANT_CIN)".xpm
39         for d in picon*; do cp -a $$d/. bin/plugins/$$d/.; done
40         cp -a db/utils/new_db "bin/cin_db"
41
42 buninstall:
43         rm -rf bin
44
45 # with system_build
46 cinstall:
47         cd bin; $(inst_sh) "$(DESTDIR)$(bindir)" "$(WANT_CIN)" \
48                 cin_db zmpeg3{cat,cc2txt,ifochk,show,toc}
49         cd bin; $(inst_sh) "$(DESTDIR)$(WANT_CINLIB_DIR)" \
50                 bdwrite cutads hveg2enc mpeg2enc mplex mplexlo
51         cd bin; $(inst_sh) "$(DESTDIR)$(datadir)/$(WANT_CIN)" \
52                 COPYING README models ffmpeg msg info tips doc
53         cd bin/locale; $(inst_sh) "$(DESTDIR)$(localedir)" .
54         cd bin/plugins; $(inst_sh) "$(DESTDIR)$(WANT_PLUGIN_DIR)" .
55         cd bin/ladspa; $(inst_sh) "$(DESTDIR)$(WANT_LADSPA_DIR)" .
56         cd bin/applications; $(inst_sh) "$(DESTDIR)$(datadir)/applications" .
57         cd bin/pixmaps; $(inst_sh) "$(DESTDIR)$(datadir)/pixmaps" .
58
59 cuninstall:
60         rm -f "$(DESTDIR)$(bindir)/$(WANT_CIN)"
61         rm -f "$(DESTDIR)$(bindir)"/zmpeg3{cat,cc2txt,ifochk,show,toc}
62         rm -f "$(DESTDIR)$(bindir)/cin_db"
63         rm -rf "$(DESTDIR)$(WANT_CINLIB_DIR)"
64         rm -rf "$(DESTDIR)$(datadir)/$(WANT_CIN)"
65         rm -rf "$(DESTDIR)$(localedir)"/*/"LC_MESSAGES/$(WANT_CIN).mo"
66         rm -rf "$(DESTDIR)$(WANT_PLUGIN_DIR)"
67         rm -rf "$(DESTDIR)$(WANT_LADSPA_DIR)"
68         rm -f "$(DESTDIR)$(datadir)/applications/$(WANT_CIN).desktop"
69         rm -f "$(DESTDIR)$(datadir)/pixmaps/$(WANT_CIN)".{svg,xpm}
70
71 # without system_build
72 dinstall:
73         cp Makefile.devel Makefile
74
75 duninstall:
76         rm -f Makefile
77
78 val-%:
79         @echo $($(subst val-,,$@))
80