File: Makefile.in

package info (click to toggle)
cmix 2.0.12-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,920 kB
  • ctags: 6,063
  • sloc: cpp: 27,139; ansic: 11,924; sh: 2,795; exp: 2,270; yacc: 1,724; makefile: 1,247; lex: 488; perl: 278
file content (89 lines) | stat: -rw-r--r-- 2,691 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
## -*- Makefile -*-
## Authors:  Jens Peter Secher (jpsecher@diku.dk)
##           Henning Makholm (makholm@diku.dk)
##           Arne John Glenstrup (panic@diku.dk)
## Content:  C-Mix system: Examples directory makefile
##
## Copyright  1999. The TOPPS group at DIKU, U of Copenhagen.
## Redistribution and modification are allowed under certain
## terms; see the file COPYING.cmix for details.

subdirs	= ack binsearch cint fft matrix pow printf ray turing

#------------------------------------------
# GOAL RULES
#------------------------------------------

check check-all:
	(cd pow       && $(MAKE) timing)
	(cd printf    && $(MAKE) timing)
	(cd binsearch && $(MAKE) timing1 answer2)
	(cd ack       && $(MAKE) timing1 answer2)
	(cd turing    && $(MAKE) answer1 answer2)
	(cd cint      && $(MAKE) timing1 answer2)
	(cd matrix    && $(MAKE) answer1)
	(cd fft       && $(MAKE) timing1 answer2 )
	(cd ray       && $(MAKE) answer1)

#------------------------------------------
# INSTALL RULES
#------------------------------------------

install: clean
	@echo Installing C-Mix exercises
	test -d $(DESTDIR)$(datadir)               || \
	  mkdir $(DESTDIR)$(datadir)
	test -d $(DESTDIR)$(datadir)/cmix          || \
	  mkdir $(DESTDIR)$(datadir)/cmix
	test -d $(DESTDIR)$(datadir)/cmix/examples || \
	  mkdir $(DESTDIR)$(datadir)/cmix/examples
	for dir in $(subdirs) ; do \
	  test -d $(DESTDIR)$(datadir)/cmix/examples/$$dir || \
	    mkdir $(DESTDIR)$(datadir)/cmix/examples/$$dir || exit 1 ; done
	for file in `cd $(srcdir) ; echo */*` ; do case $$file in \
	  */tar-contents | */*akefile* | CVS/* | */CVS) ;; \
	  *) $(INSTALL_DATA) $(srcdir)/$$file \
		$(DESTDIR)$(datadir)/cmix/examples/$$file || exit 1 ;; \
        esac ; done ;
	for file in */*akefile ; do \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/cmix/examples/$$file \
		|| exit 1 ; \
	done ;
	$(INSTALL_DATA) $(srcdir)/lineno.perl \
	  $(DESTDIR)$(datadir)/cmix/examples/lineno.perl
	$(INSTALL_SCRIPT) time-prog \
	  $(DESTDIR)$(datadir)/cmix/time-prog

#------------------------------------------
# CLEANING RULES
#------------------------------------------

Mostlyclean:
	$(RM) *~

Clean:
	for dir in $(subdirs) ; do \
	  ( cd $$dir && $(MAKE) clean ); \
	done ; exit 0

Distclean:
	for dir in $(subdirs) ; do $(RM) $$dir/*akefile ; done
	$(RM) Makefile config.* time-prog

Realclean:
	$(RM) configure

#------------------------------------------
# RULES FOR MAINTAINING THE MAKEFILE ITSELF
#------------------------------------------

Ajour: configure Makefile

Makefile: Makefile.in config.status
	./config.status

config.status: configure
	./config.status --recheck

configure: configure.in
	autoconf --localdir=..