File size: 1,485 Bytes
a5b75cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Example for use of GNU gettext.
# This file is in the public domain.
#
# Makefile configuration - processed by automake.

# General automake options.
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

# The list of subdirectories containing Makefiles.
SUBDIRS = m4 po

# The list of programs that are built.
bin_RUSTPROGRAMS = hello

# The source files of the 'hello' program.
hello_SOURCES = src/main.rs

DISTCLEANFILES =

# Additional files to be distributed.
EXTRA_DIST = autogen.sh autoclean.sh


# ----------------- General rules for compiling Rust programs -----------------

# Support for VPATH builds.
DISTCLEANFILES += Cargo.toml
EXTRA_DIST += Cargo.toml.in

DISTCLEANFILES += Cargo.lock


# Rules for compiling Rust programs.

all-local: Cargo.toml $(hello_SOURCES)
	$(CARGO) build

check-local:
	$(CARGO) test

# The target/ directory takes 2.5 to 5 minutes to rebuild. Therefore
# we delete it only at "make maintainer-clean", not at "make distclean".
maintainer-clean-local:
#	$(CARGO) clean
	rm -rf target
# Customize "make distcheck" accordingly.
distcleancheck_listfiles = \
  find . \( -type f \
            -a \! \( -name .nfs* -o -name .smb* -o -name .__afs* \) \
            -a '!' -path './target/*' \) \
         -print

install-exec-local: all-local
	$(MKDIR_P) $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) target/debug/hello$(EXEEXT) $(DESTDIR)$(bindir)/hello

installdirs-local:
	$(MKDIR_P) $(DESTDIR)$(bindir)

uninstall-local:
	rm -f $(DESTDIR)$(bindir)/hello