2009-04-01 08:28:13 +08:00
|
|
|
include config-user.mk
|
2009-03-05 20:15:28 +08:00
|
|
|
|
2009-02-06 05:08:46 +08:00
|
|
|
all:
|
|
|
|
cd libr && make
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cd libr && make clean
|
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:
|
|
|
|
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 \
|
|
|
|
scp radare2-$${DATE}.tar.gz news.nopcode.org:/home/www/radarenopcode/get/shot ; fi
|
2009-03-05 20:15:28 +08:00
|
|
|
|
2009-03-08 01:47:59 +08:00
|
|
|
.PHONY: all clean install uninstall deinstall dist
|