2009-04-01 08:28:13 +08:00
|
|
|
include config-user.mk
|
2009-04-26 01:59:52 +08:00
|
|
|
include config.mk
|
2009-03-05 20:15:28 +08:00
|
|
|
|
2009-02-06 05:08:46 +08:00
|
|
|
all:
|
2009-07-16 08:30:20 +08:00
|
|
|
cd libr && ${MAKE} all
|
2009-02-06 05:08:46 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
cd libr && make clean
|
2009-02-06 05:28:33 +08:00
|
|
|
|
2009-09-08 04:01:34 +08:00
|
|
|
vdoc:
|
2009-09-21 21:39:10 +08:00
|
|
|
rm -rf vdoc
|
|
|
|
cat libr/vapi/*.vapi > /tmp/libr.vapi
|
|
|
|
valadoc -o vdoc /tmp/libr.vapi
|
|
|
|
# rsync -avz vdoc/* pancake@radare.org:/srv/http/radareorg/vdoc/
|
|
|
|
|
|
|
|
vdoc_pkg:
|
2009-09-08 04:01:34 +08:00
|
|
|
rm -rf vdoc
|
|
|
|
valadoc -o vdoc libr/vapi/*.vapi
|
2009-09-20 05:41:25 +08:00
|
|
|
# rsync -avz vdoc/* pancake@radare.org:/srv/http/radareorg/vdoc/
|
2009-09-08 04:01:34 +08:00
|
|
|
|
2009-06-15 10:44:05 +08:00
|
|
|
mrproper:
|
|
|
|
cd libr && make mrproper
|
|
|
|
|
2009-07-16 08:30:20 +08:00
|
|
|
pkgcfg:
|
|
|
|
cd libr && make pkgcfg
|
|
|
|
|
2009-02-06 05:28:33 +08:00
|
|
|
install:
|
2009-04-20 19:02:04 +08:00
|
|
|
${INSTALL_DIR} ${DESTDIR}${PREFIX}/share/doc/radare2
|
2009-04-20 19:11:50 +08:00
|
|
|
for a in doc/* ; do ${INSTALL_DATA} $$a ${DESTDIR}/${PREFIX}/share/doc/radare2 ; done
|
2009-03-09 09:14:50 +08:00
|
|
|
cd libr && make install PARENT=1 PREFIX=${DESTDIR}${PREFIX}
|
2009-02-06 05:28:33 +08:00
|
|
|
|
2009-03-06 08:38:23 +08:00
|
|
|
uninstall:
|
2009-02-06 05:28:33 +08:00
|
|
|
rm -rf prefix
|
2009-03-05 20:15:28 +08:00
|
|
|
|
2009-03-06 08:38:23 +08:00
|
|
|
deinstall: uninstall
|
2009-03-09 09:14:50 +08:00
|
|
|
cd libr && make uninstall PARENT=1 PREFIX=${DESTDIR}${PREFIX}
|
2009-04-03 19:11:17 +08:00
|
|
|
rm -rf ${DESTDIR}${PREFIX}/share/doc/radare2
|
2009-03-06 08:38:23 +08:00
|
|
|
|
2009-03-05 20:15:28 +08:00
|
|
|
dist:
|
2009-04-26 03:43:47 +08:00
|
|
|
VERSION=${VERSION} ; \
|
2009-03-05 20:15:28 +08:00
|
|
|
FILES=`hg st -mc .| cut -c 3-|sed -e s,^,radare2-${VERSION}/,` ; \
|
|
|
|
cd .. && mv radare2 radare2-${VERSION} && \
|
|
|
|
tar czvf radare2-${VERSION}.tar.gz $${FILES} ;\
|
|
|
|
mv radare2-${VERSION} radare2
|
2009-03-08 01:47:59 +08:00
|
|
|
if [ ${RELEASE} = 1 ]; then \
|
2009-04-26 03:43:47 +08:00
|
|
|
scp radare2-${VERSION}.tar.gz news.nopcode.org:/home/www/radarenopcode/get/shot ; fi
|
2009-04-25 19:29:39 +08:00
|
|
|
|
|
|
|
shot:
|
|
|
|
DATE=`date '+%Y%m%d'` ; \
|
|
|
|
FILES=`hg status -mc|cut -c 3-|sed -e s,^,radare2-$${DATE}/,`; \
|
|
|
|
cd .. && mv radare2 radare2-$${DATE} && \
|
|
|
|
tar czvf radare2-$${DATE}.tar.gz $${FILES} ;\
|
|
|
|
mv radare2-$${DATE} radare2 && \
|
|
|
|
scp radare2-$${DATE}.tar.gz news.nopcode.org:/home/www/radarenopcode/get/shot
|
2009-08-22 09:54:24 +08:00
|
|
|
|
|
|
|
include ${MKPLUGINS}
|
2009-03-05 20:15:28 +08:00
|
|
|
|
2009-09-08 04:01:34 +08:00
|
|
|
.PHONY: all clean mrproper install uninstall deinstall dist shot pkgcfg vdoc
|