| 1 |
# This file is part of Coccinelle, lincensed under the terms of the GPL v2. |
| 2 |
# See copyright.txt in the Coccinelle source code for more information. |
| 3 |
# The Coccinelle source code can be obtained at http://coccinelle.lip6.fr |
| 4 |
|
| 5 |
COCCIDIR=../.. |
| 6 |
-include $(COCCIDIR)/Makefile.config |
| 7 |
-include $(COCCIDIR)/Makefile.local |
| 8 |
|
| 9 |
all: |
| 10 |
@$(ECHO) -e "\n\n\tCompiling spgen ...\n\n" |
| 11 |
$(MAKE) -C source all |
| 12 |
@$(ECHO) -e "\n\n\tspgen can now be installed via 'make install'.\n\n" |
| 13 |
|
| 14 |
all.opt: |
| 15 |
@$(ECHO) -e "\n\n\tCompiling spgen in native code...\n\n" |
| 16 |
$(MAKE) -C source all.opt |
| 17 |
@$(ECHO) -e "\n\n\tThe native code version of spgen can now be installed via 'make install'.\n\n" |
| 18 |
|
| 19 |
# also compile documentation; this is not done by default |
| 20 |
world: docs all |
| 21 |
|
| 22 |
clean: |
| 23 |
$(MAKE) -C source clean |
| 24 |
|
| 25 |
$(MAKE) -C documentation clean |
| 26 |
|
| 27 |
distclean: clean |
| 28 |
|
| 29 |
install: |
| 30 |
$(MAKE) -C source install |
| 31 |
@$(ECHO) -e "\n\n\tspgen installed: DONE!!!\n\n" |
| 32 |
|
| 33 |
uninstall: |
| 34 |
$(MAKE) -C source uninstall |
| 35 |
@$(ECHO) -e "\n\n\tspgen uninstalled: DONE!!!\n\n" |
| 36 |
|
| 37 |
docs: |
| 38 |
$(MAKE) -C documentation docs |
| 39 |
|
| 40 |
depend: |
| 41 |
$(MAKE) -C source depend |