]> git.sesse.net Git - mlt/blobdiff - src/modules/plus/Makefile
Version modules and data directories, and melt
[mlt] / src / modules / plus / Makefile
index b2bc473f1e444061c01e8991109b867da0bc7951..62019da8d75fa1bc198b0e4771be24c420794e71 100644 (file)
@@ -1,3 +1,7 @@
+CFLAGS += -I../..
+
+LDFLAGS += -L../../framework -lmlt -lm
+
 include ../../../config.mak
 
 TARGET = ../libmltplus$(LIBSUF)
@@ -9,10 +13,6 @@ OBJS = factory.o \
           filter_sepia.o \
           transition_affine.o
 
-CFLAGS += -I../..
-
-LDFLAGS+=-L../../framework -lmlt
-
 SRCS := $(OBJS:.o=.c)
 
 all:   $(TARGET)
@@ -30,7 +30,9 @@ clean:
                rm -f $(OBJS) $(TARGET) 
 
 install: all
-       install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+       install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
+       install -d "$(DESTDIR)$(mltdatadir)/plus"
+       install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/plus"
 
 ifneq ($(wildcard .depend),)
 include .depend