1 ## Process this file with automake to produce Makefile.in
4 $(HB_DIR)/libhb/libhb.a \
5 $(HB_DIR)/contrib/lib/liba52.a \
6 $(HB_DIR)/contrib/lib/libmkv.a \
7 $(HB_DIR)/contrib/lib/libavformat.a \
8 $(HB_DIR)/contrib/lib/libavcodec.a \
9 $(HB_DIR)/contrib/lib/libavutil.a \
10 $(HB_DIR)/contrib/lib/libdca.a \
11 $(HB_DIR)/contrib/lib/libdvdread.a \
12 $(HB_DIR)/contrib/lib/libfaac.a \
13 $(HB_DIR)/contrib/lib/libmp3lame.a \
14 $(HB_DIR)/contrib/lib/libmpeg2.a \
15 $(HB_DIR)/contrib/lib/libvorbis.a \
16 $(HB_DIR)/contrib/lib/libvorbisenc.a \
17 $(HB_DIR)/contrib/lib/libogg.a \
18 $(HB_DIR)/contrib/lib/libsamplerate.a \
19 $(HB_DIR)/contrib/lib/libx264.a \
20 $(HB_DIR)/contrib/lib/libxvidcore.a \
21 $(HB_DIR)/contrib/lib/libmp4v2.a \
22 $(HB_DIR)/contrib/lib/libswscale.a \
23 $(HB_DIR)/contrib/lib/libtheora.a \
24 $(HB_DIR)/contrib/lib/libfaad.a \
44 hb-queue-delete.16.png \
46 hb-queue-pass1.16.png \
47 hb-queue-pass2.16.png \
48 hb-queue-subtitle.16.png \
62 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
63 -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
64 -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
72 noinst_PROGRAMS = makewidgetdeps quotestring create_resources preset_xlat
74 BUILT_SOURCES = HandBrakeCLI
76 HandBrakeCLI: $(HB_DIR)/HandBrakeCLI
79 # Dummy file, not built. Forces g++ linking
80 nodist_EXTRA_ghb_SOURCES = dummy.cpp
113 ghbcellrenderertext.c \
114 ghbcellrenderertext.h \
121 -Wl,--export-dynamic -Wl,--exclude-libs,ALL
123 ghb_LDADD = $(HB_LIBS) $(GHB_LIBS)
125 ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
127 makewidgetdeps_SOURCES = \
134 makewidgetdeps_LDADD = $(GHBTOOLS_LIBS)
136 create_resources_SOURCES = \
145 create_resources_LDADD = $(GHBTOOLS_LIBS)
147 preset_xlat_SOURCES = \
154 preset_xlat_LDADD = $(GHBTOOLS_LIBS)
156 quotestring_SOURCES = quotestring.c
160 resources.c: resource_data.h
162 resource_data.h: quotestring resources.plist
163 ./quotestring resources.plist resource_data.h
165 widget_deps: makewidgetdeps
168 resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget_deps widget_reverse_deps
169 ./create_resources resources.list resources.plist
171 ghbcellrenderertext.c: marshalers.h
173 marshalers.h: marshalers.list
174 glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h
176 marshalers.c: marshalers.list
177 glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c
179 EXTRA_DIST = HandBrakeCLI
181 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
184 for icon in $(icons); do \
185 SIZE=`echo $$icon | cut -d. -f2`; \
186 FILE=`echo $$icon | cut -d. -f1,3`; \
187 if [ "$$SIZE" = "svg" ]; then \
191 SIZE="$${SIZE}x$${SIZE}"; \
193 rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
195 @-if test -n "$(DESTDIR)/$(datadir)"; then \
196 echo "Updating Gtk icon cache."; \
197 $(gtk_update_icon_cache); \
199 echo "*** Icon cache not updated. After install, run this:"; \
200 echo "*** $(gtk_update_icon_cache)"; \
202 rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
205 $(INSTALL_PROGRAM) $(srcdir)/HandBrakeCLI $(DESTDIR)/$(bindir)/HandBrakeCLI
208 for icon in $(icons); do \
209 SIZE=`echo $$icon | cut -d. -f2`; \
210 FILE=`echo $$icon | cut -d. -f1,3`; \
211 if [ "$$SIZE" = "svg" ]; then \
215 SIZE="$${SIZE}x$${SIZE}"; \
217 mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
218 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
220 @-if test -n "$(DESTDIR)/$(datadir)"; then \
221 echo "Updating Gtk icon cache."; \
222 $(gtk_update_icon_cache); \
224 echo "*** Icon cache not updated. After install, run this:"; \
225 echo "*** $(gtk_update_icon_cache)"; \
227 mkdir -p $(DESTDIR)/$(datadir)/applications/; \
228 $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)