aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-05-09 23:57:40 +0200
committerClément Bœsch <ubitux@gmail.com>2012-05-19 12:28:59 +0200
commit0cc9ee5fab1fae2438303bb0bddca94930928e91 (patch)
treee055f1d0520ff0673eb4be26b3026e4d168067ed /Makefile
parente692b9d5643bb5484c69c20162783636614bba00 (diff)
downloadffmpeg-0cc9ee5fab1fae2438303bb0bddca94930928e91.tar.gz
doc/examples: install them with the shared data.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index aad073a6c4..01c80351e3 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,7 @@ FFLIBS-$(CONFIG_SWSCALE) += swscale
FFLIBS := avutil
DATA_FILES := $(wildcard $(SRC_PATH)/presets/*.ffpreset) $(SRC_PATH)/doc/ffprobe.xsd
+EXAMPLES_FILES := $(wildcard $(SRC_PATH)/doc/examples/*.c) $(SRC_PATH)/doc/examples/Makefile
SKIPHEADERS = cmdutils_common_opts.h
@@ -125,9 +126,10 @@ install-progs: install-progs-yes $(PROGS)
$(Q)mkdir -p "$(BINDIR)"
$(INSTALL) -c -m 755 $(INSTPROGS) "$(BINDIR)"
-install-data: $(DATA_FILES)
- $(Q)mkdir -p "$(DATADIR)"
+install-data: $(DATA_FILES) $(EXAMPLES_FILES)
+ $(Q)mkdir -p "$(DATADIR)/examples"
$(INSTALL) -m 644 $(DATA_FILES) "$(DATADIR)"
+ $(INSTALL) -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples"
uninstall: uninstall-libs uninstall-headers uninstall-progs uninstall-data