Commit a1a84f69 authored by Robert Swain's avatar Robert Swain

Add (un)installation targets for ffpresets using the new DATADIR variable

Originally committed as revision 16793 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 77652a6a
...@@ -24,6 +24,8 @@ FFLIBS-$(CONFIG_SWSCALE) += swscale ...@@ -24,6 +24,8 @@ FFLIBS-$(CONFIG_SWSCALE) += swscale
FFLIBS := avdevice avformat avcodec avutil FFLIBS := avdevice avformat avcodec avutil
DATA_FILES := $(wildcard $(SRC_DIR)/ffpresets/*.ffpreset)
include common.mak include common.mak
FF_LDFLAGS := $(FFLDFLAGS) FF_LDFLAGS := $(FFLDFLAGS)
...@@ -35,7 +37,7 @@ ALL_TARGETS-$(BUILD_DOC) += documentation ...@@ -35,7 +37,7 @@ ALL_TARGETS-$(BUILD_DOC) += documentation
INSTALL_TARGETS-$(CONFIG_VHOOK) += install-vhook INSTALL_TARGETS-$(CONFIG_VHOOK) += install-vhook
ifneq ($(PROGS),) ifneq ($(PROGS),)
INSTALL_TARGETS-yes += install-progs INSTALL_TARGETS-yes += install-progs install-data
INSTALL_TARGETS-$(BUILD_DOC) += install-man INSTALL_TARGETS-$(BUILD_DOC) += install-man
endif endif
INSTALL_PROGS_TARGETS-$(BUILD_SHARED) = install-libs INSTALL_PROGS_TARGETS-$(BUILD_SHARED) = install-libs
...@@ -129,6 +131,10 @@ install-progs: $(PROGS) $(INSTALL_PROGS_TARGETS-yes) ...@@ -129,6 +131,10 @@ install-progs: $(PROGS) $(INSTALL_PROGS_TARGETS-yes)
install -d "$(BINDIR)" install -d "$(BINDIR)"
install -c -m 755 $(PROGS) "$(BINDIR)" install -c -m 755 $(PROGS) "$(BINDIR)"
install-data: $(DATA_FILES)
install -d "$(DATADIR)"
install -m 644 $(DATA_FILES) "$(DATADIR)"
install-man: $(MANPAGES) install-man: $(MANPAGES)
install -d "$(MANDIR)/man1" install -d "$(MANDIR)/man1"
install -m 644 $(MANPAGES) "$(MANDIR)/man1" install -m 644 $(MANPAGES) "$(MANDIR)/man1"
...@@ -137,11 +143,14 @@ install-vhook: videohook ...@@ -137,11 +143,14 @@ install-vhook: videohook
install -d "$(SHLIBDIR)/vhook" install -d "$(SHLIBDIR)/vhook"
install -m 755 $(HOOKS) "$(SHLIBDIR)/vhook" install -m 755 $(HOOKS) "$(SHLIBDIR)/vhook"
uninstall: uninstall-progs uninstall-man uninstall-vhook uninstall: uninstall-progs uninstall-data uninstall-man uninstall-vhook
uninstall-progs: uninstall-progs:
rm -f $(addprefix "$(BINDIR)/", $(ALLPROGS)) rm -f $(addprefix "$(BINDIR)/", $(ALLPROGS))
uninstall-data:
rm -rf "$(DATADIR)"
uninstall-man: uninstall-man:
rm -f $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES)) rm -f $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment