]> git.sesse.net Git - mlt/blobdiff - src/modules/xml/Makefile
Version modules and data directories, and melt
[mlt] / src / modules / xml / Makefile
index 83c617b58afebdd99c603a73c5870dd5140a4b9f..fafc540c187d565aa45acb19bd79cddcf30eb9d6 100644 (file)
@@ -1,3 +1,7 @@
+CFLAGS += -I../..
+
+LDFLAGS += -L../../framework -lmlt -lpthread
+
 include ../../../config.mak
 
 TARGET = ../libmltxml$(LIBSUF)
@@ -6,10 +10,8 @@ OBJS = factory.o \
           consumer_xml.o \
           producer_xml.o
 
-CFLAGS += -I../..
 CFLAGS += `pkg-config libxml-2.0 --cflags`
 
-LDFLAGS += -L../../framework -lmlt
 LDFLAGS += `pkg-config libxml-2.0 --libs`
 
 SRCS := $(OBJS:.o=.c)
@@ -29,9 +31,10 @@ clean:
                rm -f $(OBJS) $(TARGET) 
 
 install: all
-       install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
-       install -d "$(DESTDIR)$(datadir)/mlt/xml"
-       install -m 644 mlt-xml.dtd "$(DESTDIR)$(datadir)/mlt/xml"
+       install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
+       install -d "$(DESTDIR)$(mltdatadir)/xml"
+       install -m 644 mlt-xml.dtd "$(DESTDIR)$(mltdatadir)/xml"
+       install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/xml"
 
 ifneq ($(wildcard .depend),)
 include .depend