File: Makefile

package info (click to toggle)
torch 2-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,488 kB
  • ctags: 3,217
  • sloc: cpp: 14,272; makefile: 201
file content (29 lines) | stat: -rw-r--r-- 668 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
all:

VPATH = kernel:matrix:addons:distributions:data_formats

include Makefile.prefix

all install install-strip clean uninstall:
	$(MAKE) -C liba $@
	$(MAKE) -C libso $@

include kernel/Makefile.files
include matrix/Makefile.files
include addons/Makefile.files
include distributions/Makefile.files
include data_formats/Makefile.files

# examples

install-strip install: install-h
uninstall: uninstall-h

install-h: $(ifiles)
	-install --directory $(DESTDIR)$(includedir)/torch
	$(INSTALL_DATA) $^ $(DESTDIR)$(includedir)/torch/

uninstall-h:
	cd $(DESTDIR)$(includedir)/torch; rm -f $(ifiles)

.PHONY: all install install-strip clean uninstall install-h uninstall-h