# HG changeset patch # User Mychaela Falconia # Date 1720491738 0 # Node ID 84affc6de3659ffe5f69b274dd395506d9f31ad0 # Parent c0ce22777694256f0a56cedd63ee26008af65145 Makefile hierarchy: add install diff -r c0ce22777694 -r 84affc6de365 Makefile --- a/Makefile Tue Jul 09 01:56:26 2024 +0000 +++ b/Makefile Tue Jul 09 02:22:18 2024 +0000 @@ -1,4 +1,4 @@ -SUBDIR= src +SUBDIR= include src DESTDIR= all: ${SUBDIR} @@ -10,9 +10,9 @@ @echo 'You must run ./configure before make' @false -#install: FRC -# for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ -# DESTDIR=${DESTDIR} install); done +install: FRC + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ + DESTDIR=${DESTDIR} install); done clean: FRC rm -f a.out core errs diff -r c0ce22777694 -r 84affc6de365 include/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/Makefile Tue Jul 09 02:22:18 2024 +0000 @@ -0,0 +1,14 @@ +FILES= endp.h fdpair.h pstn_defs.h rtcp_defs.h rtp_basic_hdr.h rtp_defs.h \ + twjit.h + +include ../config.defs + +INSTDIR=${DESTDIR}${includedir}/themwi/rtp + +all: + +install: + mkdir -p ${INSTDIR} + install -c -m 644 ${FILES} ${INSTDIR} + +clean: diff -r c0ce22777694 -r 84affc6de365 src/Makefile --- a/src/Makefile Tue Jul 09 01:56:26 2024 +0000 +++ b/src/Makefile Tue Jul 09 02:22:18 2024 +0000 @@ -16,5 +16,9 @@ ar rcu $@ ${OBJS} ranlib $@ +install: + mkdir -p ${DESTDIR}${libdir} + install -c -m 644 ${LIB} ${DESTDIR}${libdir} + clean: rm -f *.[oa] errs