Makefile

changeset 8
167277f57ce6
parent 3
9c6b686f797d
child 15
9f4f7a266c0b
equal deleted inserted replaced
7:4a166914a61f 8:167277f57ce6
27 27
28 PREFIX= /usr/local 28 PREFIX= /usr/local
29 INCDIR= ${PREFIX}/include 29 INCDIR= ${PREFIX}/include
30 LIBDIR= ${PREFIX}/lib 30 LIBDIR= ${PREFIX}/lib
31 MANDIR= ${PREFIX}/share/man 31 MANDIR= ${PREFIX}/share/man
32
33 VERSION= 0.1.0
32 34
33 SRCS= buf-clear.c \ 35 SRCS= buf-clear.c \
34 buf-dup.c \ 36 buf-dup.c \
35 buf-erase.c \ 37 buf-erase.c \
36 buf-finish.c \ 38 buf-finish.c \
85 87
86 clean: 88 clean:
87 rm -f libbuf.a ${OBJS} 89 rm -f libbuf.a ${OBJS}
88 rm -f ${TESTS_OBJS} 90 rm -f ${TESTS_OBJS}
89 91
92 dist:
93 rm -rf libbuf-${VERSION}
94 mkdir libbuf-${VERSION}
95 cp -R test extern libbuf-${VERSION}
96 cp ${SRCS} buf.h buf-int.h libbuf-${VERSION}
97 cp ${MAN} libbuf-${VERSION}
98 cp INSTALL.md LICENSE.md README.md Makefile Doxyfile libbuf-${VERSION}
99 tar -cjf libbuf-${VERSION}.tar.xz libbuf-${VERSION}
100 rm -rf libbuf-${VERSION}
101
90 doxygen: 102 doxygen:
91 doxygen Doxyfile 103 doxygen Doxyfile
92 104
93 install: 105 install:
94 mkdir -p ${DESTDIR}${INCDIR} 106 mkdir -p ${DESTDIR}${INCDIR}
101 ${TESTS_OBJS}: libbuf.a 113 ${TESTS_OBJS}: libbuf.a
102 114
103 test: ${TESTS_OBJS} 115 test: ${TESTS_OBJS}
104 for t in ${TESTS_OBJS}; do ./$$t; done 116 for t in ${TESTS_OBJS}; do ./$$t; done
105 117
106 .PHONY: all clean doxygen install test 118 .PHONY: all clean dist doxygen install test

mercurial