+ DESTDIR patch from Anthony Green (green at redhat dot com) - many thanks :-)
[melted] / src / inigo / Makefile
index b9e0b5d..02439ca 100644 (file)
@@ -1,11 +1,13 @@
+include ../../config.mak
+
 TARGET = inigo
 
 OBJS = inigo.o \
           io.o
 
-CFLAGS = -O3 -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
+CFLAGS += -I.. $(RDYNAMIC)
 
-LDFLAGS = -L ../framework -lmlt 
+LDFLAGS += -L../framework -lmlt 
 
 SRCS := $(OBJS:.o=.c)
 
@@ -23,6 +25,10 @@ dist-clean:  clean
 clean: 
                rm -f $(OBJS) $(TARGET)
 
+install:       all
+       install -d "$(DESTDIR)$(bindir)"
+       install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif