File: Makefile

package info (click to toggle)
libfann 2.1.0~beta%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,648 kB
  • ctags: 924
  • sloc: sh: 8,753; ansic: 5,994; cpp: 2,351; makefile: 507; perl: 243; python: 131; sed: 7
file content (45 lines) | stat: -rw-r--r-- 899 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This makefile was written to compile a distribution of pyfann for
# GNU platforms (cygwin included.)

ROOT=/
PYTHON=python

SOURCES = pyfann/*.i pyfann/*.h
all: build-stamp

linux:
	@(cd pyfann && make)

clean:
	@(cd pyfann && make clean)
	@rm -fr dist build setup.pyc
	@rm -fr examples/{nets,pyfann/}
	@rm -f build-stamp
	
msvc:
	@(cd pyfann && make -f makefile.msvc)

build:
build-stamp: ../src/doublefann.o $(SOURCES)
	@$(PYTHON) setup.py build
	@touch build-stamp

install: build-stamp
	@$(PYTHON) setup.py install --root $(ROOT)

../src/doublefann.o: ../Makefile
	@(cd .. && make )

../Makefile:
	@(cd .. && ./configure)

copy: build-stamp
	@- [ -d examples/nets ] || mkdir examples/nets
	@cp build/lib.*/pyfann/ -a examples
    
test: copy
	@cd examples && \
		$(PYTHON) simple_train.py && \
		$(PYTHON) mushroom.py &&\
		$(PYTHON) cascade_train.py
.PHONY: test install msvc clean linux all