Skip to content

Commit

Permalink
Add install and uninstall targets to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksheeep committed Jul 23, 2013
1 parent 1e7422c commit 8996f2d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Makefile
Expand Up @@ -7,11 +7,15 @@ EXTLIBS= -lcrypto
EXTMAKE=
EXTMAKECLEAN=

PROGS= ccn-lite-relay \
ccn-lite-minimalrelay \
ccn-lite-simu \
INST_PROGS= ccn-lite-relay \
ccn-lite-minimalrelay \
ccn-lite-simu

PROGS= ${INST_PROGS} \
ccn-lite-lnxkernel



ifdef USE_CHEMFLOW
CHEMFLOW_HOME=./chemflow/chemflow-20121006
EXTLIBS=-lcf -lcfserver
Expand Down Expand Up @@ -72,6 +76,14 @@ datastruct.pdf: datastruct.dot
epstopdf datastruct.ps
rm -f datastruct.ps

install: all
install ${INST_PROGS} ${INSTALL_PATH}/bin && cd util && make install && cd ..

uninstall:
cd ${INSTALL_PATH}/bin && rm -f ${PROGS} && cd - > /dev/null \
&& cd util && make uninstall && cd ..


clean:
${EXTMAKECLEAN}
rm -rf *~ *.o ${PROGS} node-*.log .ccn-lite-lnxkernel* *.ko *.mod.c *.mod.o .tmp_versions modules.order Module.symvers
Expand Down
6 changes: 6 additions & 0 deletions util/Makefile
Expand Up @@ -26,5 +26,11 @@ demo: $(PROGS)
./ccnl-mkInterest ccn-lite says hello world äöü | ./ccn-lite-ccnb2hex
./ccnl-mkInterest ccn-lite says hello world äöü | ./ccn-lite-ccnb2xml

install: all
install ${PROGS} ${INSTALL_PATH}/bin

uninstall:
cd ${INSTALL_PATH}/bin && rm -f ${PROGS} && cd - > /dev/null

clean:
rm -rf *~ $(PROGS)

0 comments on commit 8996f2d

Please sign in to comment.