forked from bolthole/zrep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (21 loc) · 805 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
ZSOURCE=zrep_top zrep_vars zrep_status zrep_snap zrep_sync zrep_failover
all: zrep zrep.spec
zrep: $(ZSOURCE)
nawk '$$1 == "AWKinclude" {system ("cat "$$2);next;} \
{print}' zrep_top > $@
chmod 0755 $@
zrep.spec: zrep_top
sed "s/VERSION/`sed -n 's/^ZREP_VERSION=//p' zrep_top`/" zrep.spec.tmpl >zrep.spec
# detect is a test util to see if zfs feature detect works
detect: detect_test zrep_vars
nawk '$$1 == "AWKinclude" {system ("cat "$$2);next;} \
{print}' detect_test > $@
chmod 0755 $@
save:
cp -p $(ZSOURCE) Makefile SAVE
diffs:
for f in `ls SAVE` ; do echo '###' $$f; diff -r SAVE/$$f $$f ||true ; done |less
# To find list of zrep: key properties, use the following:
# sed -n 's/.*\(zrep:.*\)=.*/\1/p' zrep_*|sort -u
listfuncs:
grep '^[_a-z].*[(].*[{]' $(ZSOURCE)