-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (39 loc) · 838 Bytes
/
Makefile
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
# Extract letter only, e.g. "gen-pub-51" -> "genpub"
letters = $(shell echo "$(1)" | sed -e s/[^A-Z]//ig)
# Get OS (or kernel) name and generic hostname
OS = $(call letters,$(shell (uname -o 2>/dev/null || uname -s)))
GENHOST = $(call letters,$(shell uname -n))
UTILS_ALL = \
cconv \
defs undefs:defs \
exp \
git-cane \
git-ff \
git-shove \
git-smu \
srcdirs \
withvenv \
UTILS_SunOS = \
UTILS_GNULinux = \
cmddiff \
cpifdiff \
dockclean \
dockrun \
eshed \
lc \
mvall cpall:mvall \
pargs penv:pargs \
prod \
prodls \
UTILS_freia = \
mountjac \
mountsol:mountjac \
mountmeta:mountjac \
mountmast:mountjac \
mountpcs:mountjac \
install: cconv
./install-files $(UTILS_ALL) $(UTILS_$(OS)) $(UTILS_$(GENHOST))
install-%: cconv
./install-files $(UTILS_ALL) $(UTILS_$*)
cconv: cconv.c
$(CC) -g -Wall -o $@ $<