File: Makefile

package info (click to toggle)
rubiks 20070912-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,052 kB
  • ctags: 1,046
  • sloc: cpp: 7,385; ansic: 7,350; makefile: 219
file content (23 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DIRS=dietz/cu2 dietz/mcube dietz/solver dik reid
#INSTALL=`which install` 
PREFIX=/usr
BINDIR=$(PREFIX)/bin

all clean:
	for dir in $(DIRS); do \
		(cd $${dir} && make $@)\
	done

distclean: clean
	for dir in $(DIRS); do \
		(cd $${dir} && make distclean)\
	done

install: all
	mkdir -p $(DESTDIR)$(BINDIR)
	$(INSTALL) reid/optimal $(DESTDIR)$(BINDIR)
	$(INSTALL) dietz/solver/cubex $(DESTDIR)$(BINDIR)
	$(INSTALL) dietz/mcube/mcube $(DESTDIR)$(BINDIR)
	$(INSTALL) dietz/cu2/cu2 $(DESTDIR)$(BINDIR)
	$(INSTALL) dik/dikcube $(DESTDIR)$(BINDIR)
	$(INSTALL) dik/size222 $(DESTDIR)$(BINDIR)