File: Makefile

package info (click to toggle)
torch-examples 2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 676 kB
  • ctags: 39
  • sloc: cpp: 1,973; makefile: 64; csh: 39
file content (29 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
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
progs = adaboost bag gmm hmm mixture_softmax mlp svm bayes hmm_speech

all: $(progs)

CPPFLAGS += -I/usr/include/torch
CXXFLAGS = -Wall -g -O2
LOADLIBES += -ltorch

prefix=/usr/local
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
INSTALL=install
INSTALL_DATA=$(INSTALL) --mode 644
INSTALL_PROGRAM=$(INSTALL)

install: $(progs)
	$(INSTALL) --directory $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $^ $(DESTDIR)$(bindir)/

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) --strip' install

uninstall:
	-cd $(DESTDIR)$(bindir)/ && rm -f $(progs)

clean:
	-rm -f $(progs)

.PHONY: all clean install install-strip uninstall