FFLIBS := avdevice avformat avcodec avutil
+DATA_FILES := $(wildcard $(SRC_DIR)/ffpresets/*.ffpreset)
+
include common.mak
FF_LDFLAGS := $(FFLDFLAGS)
INSTALL_TARGETS-$(CONFIG_VHOOK) += install-vhook
ifneq ($(PROGS),)
-INSTALL_TARGETS-yes += install-progs
+INSTALL_TARGETS-yes += install-progs install-data
INSTALL_TARGETS-$(BUILD_DOC) += install-man
endif
INSTALL_PROGS_TARGETS-$(BUILD_SHARED) = install-libs
install -d "$(BINDIR)"
install -c -m 755 $(PROGS) "$(BINDIR)"
+install-data: $(DATA_FILES)
+ install -d "$(DATADIR)"
+ install -m 644 $(DATA_FILES) "$(DATADIR)"
+
install-man: $(MANPAGES)
install -d "$(MANDIR)/man1"
install -m 644 $(MANPAGES) "$(MANDIR)/man1"
install -d "$(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:
rm -f $(addprefix "$(BINDIR)/", $(ALLPROGS))
+uninstall-data:
+ rm -rf "$(DATADIR)"
+
uninstall-man:
rm -f $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))