owlps/infrastructure-centred/Makefile

76 lines
2.0 KiB
Makefile

.PHONY : all owlps-aggregator owlps-listener owlps-client clean purge help install install-owlps-aggregator install-owlps-listener install-owlps-client uninstall uninstall-owlps-aggregator uninstall-owlps-listener uninstall-owlps-client
## Compilation ##
all : owlps-aggregator owlps-listener owlps-client
owlps-aggregator :
@make -C owlps-aggregator
owlps-listener :
@make -C owlps-listener
owlps-client :
@make -C owlps-client
## Installation ##
install : install-owlps-aggregator install-owlps-listener install-owlps-client
install-owlps-aggregator :
@make -C owlps-aggregator install
install-owlps-listener :
@make -C owlps-listener install
install-owlps-client :
@make -C owlps-client install
## Désinstallation ##
uninstall : uninstall-owlps-aggregator uninstall-owlps-listener uninstall-owlps-client
uninstall-owlps-aggregator :
@make -C owlps-aggregator uninstall
uninstall-owlps-listener :
@make -C owlps-listener uninstall
uninstall-owlps-client :
@make -C owlps-client uninstall
## Nettoyage ##
clean :
@make -C owlps-aggregator clean
@make -C owlps-listener clean
@make -C owlps-client clean
purge :
@make -C owlps-aggregator purge
@make -C owlps-listener purge
@make -C owlps-client purge
## Aide ##
help :
@echo -e "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
libconfuse-dev\n\
libowlps1.0 (fournie)\n\
\n\
Cibles possibles :\n\
all (cible par défaut) : Compile tous les modules.\n\
<module> : Compile uniquement le module <module> (et ses dépendances).\n\
\n\
install : Installe tous les modules.\n\
install-<module> : Installe uniquement le module <module> (et ses dépendances).\n\
\n\
uninstall : Désinstalle tous les modules.\n\
uninstall-<module> : Désinstalle uniquement le module <module> (et ses dépendances).\n\
\n\
clean : Supprime les fichiers temporaires.\n\
purge : Supprime le résultat de la compilation.\n\
\n\
Note : l'installation se fait dans l'arborescence /usr/local. Modifiez la variable PREFIX de chaque Makefile pour changer ce comportement."