X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=e5b17f2441c8c605a62e394f016f239e70ea8e1d;hb=5ccdf907539a77167d7db286a642b2f423e7caa5;hp=de66bb7407151d1c12bb9a530442973d726503c2;hpb=d653dcd28efa770dec9ee2dc8cbe7eb8eedd751b;p=mlt diff --git a/Makefile b/Makefile index de66bb74..e5b17f24 100644 --- a/Makefile +++ b/Makefile @@ -28,17 +28,21 @@ install: install -d "$(DESTDIR)$(prefix)/bin" install -d "$(DESTDIR)$(prefix)/include" install -d "$(DESTDIR)$(libdir)" - install -d "$(DESTDIR)$(libdir)/mlt" + install -d "$(DESTDIR)$(moduledir)" +ifeq ($(extra_versioning), true) + ln -s "$(moduledir)" "$(DESTDIR)$(unversionedmoduledir)" +endif install -d "$(DESTDIR)$(libdir)/pkgconfig" - install -d "$(DESTDIR)$(prefix)/share/mlt" + install -d "$(DESTDIR)$(mltdatadir)" +ifeq ($(extra_versioning), true) + ln -s "$(mltdatadir)" "$(DESTDIR)$(unversionedmltdatadir)" +endif install -c -m 644 *.pc "$(DESTDIR)$(libdir)/pkgconfig" list='$(SUBDIRS)'; \ for subdir in $$list; do \ $(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \ - done; \ -# if test -z "$(DESTDIR)"; then \ -# /sbin/ldconfig -n "$(DESTDIR)$(libdir)" 2> /dev/null || true; \ -# fi + done + cp -R presets "$(DESTDIR)$(mltdatadir)" uninstall: rm -f "$(DESTDIR)$(bindir)"/mlt-config @@ -49,7 +53,16 @@ uninstall: $(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \ done rm -rf "$(DESTDIR)$(prefix)/include/mlt" + rm -rf "$(DESTDIR)$(mltdatadir)" +ifeq ($(compat_dirs), true) rm -rf "$(DESTDIR)$(prefix)/share/mlt" +endif dist: git archive --format=tar --prefix=mlt-$(version)/ v$(version) | gzip >mlt-$(version).tar.gz + +validate-yml: + for file in $$(find src/modules -type f -name \*.yml); do \ + echo "validate: $$file"; \ + kwalify -f src/framework/metaschema.yaml $$file || exit 1; \ + done