-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
75 lines (60 loc) · 1.6 KB
/
Makefile.am
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
if BUILD_MASTER
MASTERDIR=mfsmaster mfsmetadump
else
MASTERDIR=
endif
if BUILD_METALOGGER
METALOGGERDIR=mfsmetalogger
else
METALOGGERDIR=
endif
if BUILD_SUPERVISOR
SUPERVISORDIR=mfssupervisor
else
SUPERVISORDIR=
endif
if BUILD_CHUNKSERVER
CHUNKSERVERDIR=mfschunkserver
else
CHUNKSERVERDIR=
endif
if BUILD_MOUNT
MOUNTDIR=mfsmount
else
MOUNTDIR=
endif
if BUILD_SCRIPTS
SCRIPTSDIR=mfsscripts
else
SCRIPTSDIR=
endif
if BUILD_NETDUMP
NETDUMPDIR=mfsnetdump
else
NETDUMPDIR=
endif
if WITH_SYSTEMD
SYSTEMDDIR=systemd
else
SYSTEMDDIR=
endif
RELEASE = @release@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS=mfstests mfsdata mfsmanpages $(MASTERDIR) $(METALOGGERDIR) $(SUPERVISORDIR) $(CHUNKSERVERDIR) $(MOUNTDIR) $(SCRIPTSDIR) $(NETDUMPDIR) $(SYSTEMDDIR)
EXTRA_DIST=m4/ax_pthread.m4 debian rpm macosx freebsd linux_build.sh macosx_build.sh freebsd_build.sh
distclean-local:
-rm -rf mfscommon/$(DEPDIR)
dist-hook:
TODAY=`date "+%B %Y"` ; \
for f in $(distdir)/mfsmanpages/*.[1-8] ; do \
mv $$f tmp ; sed -e "1s#MooseFS [1-9]\{1,5\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}-[0-9]\{1,2\}#MooseFS $(VERSION)-$(RELEASE)#" -e "1s#[A-Z][a-z]* [0-9][0-9][0-9][0-9]#$$TODAY#" < tmp | grep -v MFS_PRO_MARKER > $$f ; \
done ; \
for f in $(distdir)/mfsdata/*.cfg* ; do \
mv $$f tmp ; grep -v MFS_PRO_MARKER < tmp > $$f ; \
done ; \
mv $(distdir)/debian/control tmp ; grep -v '^#' < tmp > $(distdir)/debian/control ; \
mv $(distdir)/rpm/mfs.spec tmp ; grep -v '^##' < tmp > $(distdir)/rpm/mfs.spec ; \
rm -f tmp
mfsdist: dist
mv $(distdir).tar.gz ../moosefs-dist/$(distdir)-$(RELEASE).tar.gz
ln -sf $(distdir)-$(RELEASE).tar.gz ../moosefs-dist/$(distdir).tar.gz