-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.ExampleDriver
47 lines (37 loc) · 1.1 KB
/
Makefile.ExampleDriver
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
syntax:
perl -c aspxtraktor_restart.pl
letters := a b c d e f g h i j k l m n o p q r s t u v q w x y z
files1 := $(letters)
files4 := $(foreach firstletter,$(letters), \
$(foreach secondletter,$(letters), \
$(foreach l3,$(letters), \
$(foreach l4,$(letters), \
$(firstletter)$(secondletter)$(l3)$(l4) \
) \
) \
))
files3 := $(foreach firstletter,$(letters), \
$(foreach secondletter,$(letters), \
$(foreach l3,$(letters), \
$(firstletter)$(secondletter)$(l3) \
) \
) \
)
files2 := $(foreach firstletter,$(letters), \
$(foreach secondletter,$(letters), \
$(firstletter)$(secondletter) \
) \
)
files := $(files2)
html_files := $(foreach file,$(files),$(file).html)
xml_files := $(foreach file,$(files),$(file).xml)
csv_files := $(foreach file,$(files),$(file).csv)
all : $(html_files) # the first rule to follow, from here all other rules are called
echo $(html_files)
# http://www.gnu.org/s/hello/manual/make/Foreach-Function.html
#
%.htm : %
% :
# aspxtraktor.pl
perl ../aspxtraktor.pl --term=$@
#$@ is the name of the output of the rule we want.