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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [99s-extend] Trying to grok erlang.mk
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Trying%20to%20grok%20erlang.mk&In-Reply-To=%3C1394137799.268930068%40apps.rackspace.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000342.html">
<LINK REL="Next" HREF="000347.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[99s-extend] Trying to grok erlang.mk</H1>
<B>lloyd at writersglen.com</B>
<A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Trying%20to%20grok%20erlang.mk&In-Reply-To=%3C1394137799.268930068%40apps.rackspace.com%3E"
TITLE="[99s-extend] Trying to grok erlang.mk">lloyd at writersglen.com
</A><BR>
<I>Thu Mar 6 21:29:59 CET 2014</I>
<P><UL>
<LI>Previous message: <A HREF="000342.html">[99s-extend] Cowboy pre request filter
</A></li>
<LI>Next message: <A HREF="000347.html">[99s-extend] Trying to grok erlang.mk
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#346">[ date ]</a>
<a href="thread.html#346">[ thread ]</a>
<a href="subject.html#346">[ subject ]</a>
<a href="author.html#346">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
To secure my understanding of erlang.mk, I've been trying to create the simplest possible example I can imagine. Which gives me this:
min
erlang.mk
Makefile
src
min.app.src
min.erl
*** Where Makefile is:
PROJECT = min
include erlang.mk
*** min.app.src is:
{application, min,
[{description,[]},
{vsn,"0.1.0"},
{registered,[]},
{applications,[kernel,stdlib]},
{env,[]},
{modules,[]}]}.
*** and min.erl is:
-module(min).
-export([hello/0]).
hello() ->
io:format("Hello min!~n~n").
*** But when I call make, I get this:
/min$ make
ERLC min.erl
APP min .app.src
cat: src/min: No such file or directory
cat: .app.src: No such file or directory
sed: can't read .app: No such file or directory
make: *** [app] Error 2
*** Observations
min.erl compiles just fine
min.app.src breaks the compile
*** Questions:
1) How can I correct this?
2) How can I structure directories and make files for a project that involves several applications?
Many thanks,
LRP
*********************************************
My books:
THE GOSPEL OF ASHES
<A HREF="http://thegospelofashes.com">http://thegospelofashes.com</A>
Strength is not enough. Do they have the courage
and the cunning? Can they survive long enough to
save the lives of millions?
FREEIN' PANCHO
<A HREF="http://freeinpancho.com">http://freeinpancho.com</A>
A community of misfits help a troubled boy find his way
AYA TAKEO
<A HREF="http://ayatakeo.com">http://ayatakeo.com</A>
Star-crossed love, war and power in an alternative
universe
Available through Amazon or by request from your
favorite bookstore
**********************************************
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000342.html">[99s-extend] Cowboy pre request filter
</A></li>
<LI>Next message: <A HREF="000347.html">[99s-extend] Trying to grok erlang.mk
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#346">[ date ]</a>
<a href="thread.html#346">[ thread ]</a>
<a href="subject.html#346">[ subject ]</a>
<a href="author.html#346">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>
|