[rtmpdump] r491 - in trunk: Makefile librtmp/Makefile
hyc
subversion at mplayerhq.hu
Sat May 29 09:34:54 CEST 2010
Author: hyc
Date: Sat May 29 09:34:53 2010
New Revision: 491
Log:
Add install targets for tools and docs
Modified:
trunk/Makefile
trunk/librtmp/Makefile
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile Sat May 29 09:26:00 2010 (r490)
+++ trunk/Makefile Sat May 29 09:34:53 2010 (r491)
@@ -1,5 +1,7 @@
VERSION=v2.2e
+prefix=/usr/local
+
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)ld
@@ -21,6 +23,9 @@ OPT=-O2
CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
LDFLAGS=-Wall $(XLDFLAGS)
+BINDIR=$(DESTDIR)$(prefix)/bin
+MANDIR=$(DESTDIR)$(prefix)/man
+
LIBS_posix=
LIBS_mingw=-lws2_32 -lwinmm -lgdi32
LIBS=$(CRYPTO_LIB) -lz $(LIBS_$(SYS))
@@ -41,6 +46,13 @@ all: $(LIBRTMP) progs
progs: rtmpdump rtmpgw rtmpsrv rtmpsuck
+install: progs
+ -mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man8
+ cp rtmpdump$(EXT) rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) $(BINDIR)
+ cp rtmpdump.1 $(MANDIR)/man1
+ cp rtmpgw.8 $(MANDIR)/man8
+ @cd librtmp; $(MAKE) install $(MAKEFLAGS)
+
clean:
rm -f *.o rtmpdump$(EXT) rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT)
@cd librtmp; $(MAKE) clean
Modified: trunk/librtmp/Makefile
==============================================================================
--- trunk/librtmp/Makefile Sat May 29 09:26:00 2010 (r490)
+++ trunk/librtmp/Makefile Sat May 29 09:34:53 2010 (r491)
@@ -23,6 +23,7 @@ CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(
INCDIR=$(DESTDIR)$(prefix)/include/librtmp
LIBDIR=$(DESTDIR)$(prefix)/lib
+MANDIR=$(DESTDIR)$(prefix)/man
all: librtmp.a
@@ -43,7 +44,8 @@ librtmp.pc: librtmp.pc.in Makefile
-e "s;@CRYPTO_REQ@;$(CRYPTO_REQ);" librtmp.pc.in > $@
install: librtmp.a librtmp.pc
- -mkdir -p $(INCDIR) $(LIBDIR)/pkgconfig
+ -mkdir -p $(INCDIR) $(LIBDIR)/pkgconfig $(MANDIR)/man3
cp amf.h http.h log.h rtmp.h $(INCDIR)
cp librtmp.a $(LIBDIR)
cp librtmp.pc $(LIBDIR)/pkgconfig
+ cp librtmp.3 $(MANDIR)/man3
More information about the rtmpdump
mailing list