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
|
if BUILD_MASTER
MASTERDIR = mfsmaster mfsmetatools
else
MASTERDIR =
endif
if BUILD_METALOGGER
METALOGGERDIR = mfsmetalogger
else
METALOGGERDIR =
endif
if BUILD_CHUNKSERVER
CHUNKSERVERDIR = mfschunkserver
else
CHUNKSERVERDIR =
endif
if BUILD_GUI
GUIDIR = mfsgui
else
GUIDIR =
endif
if BUILD_CLIENT
CLIENTDIR = mfsclient
else
CLIENTDIR =
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@
BUILDNO = @buildno@
# ODISTDIR = $(PACKAGE)-$(VERSION)
# override distdir = $(PACKAGE)-$(VERSION)-b$(BUILDNO)
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = mfstests mfsdata mfsmanpages $(MASTERDIR) $(METALOGGERDIR) $(CHUNKSERVERDIR) $(GUIDIR) $(CLIENTDIR) $(SCRIPTSDIR) $(NETDUMPDIR) $(SYSTEMDDIR)
EXTRA_DIST = m4/ax_pthread.m4 m4/ax_check_compile_flag.m4 debian rpm macosx freebsd debian_sysv_to_systemd.sh cross_enable.sh linux_build.sh macosx_build.sh freebsd_build.sh sanitize_build.sh README.md buildno.txt
distclean-local:
-rm -rf mfscommon/$(DEPDIR)
dist-hook:
@echo "Preprocessing files for distribution:"
@echo " - manpages: fixing dates and versions"
@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 > $$f ; \
done
@echo " - freebsd pkg-plist.gui: appending mfsscripts subfolders"
@find $(distdir)/mfsscripts -mindepth 2 -type f ! -name "*.in" | sed 's|^$(distdir)/mfsscripts/|share/mfscgi/|' >> $(distdir)/freebsd/files/pkg-plist.gui
@rm -f tmp
mfsdist: dist
mv $(distdir).tar.gz ../moosefs-dist/$(distdir)-b$(BUILDNO).tar.gz ; \
if grep -q '(WIP)' NEWS; then \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/$(distdir)-WIP.tar.gz ; \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/moosefs-4.x-LATEST.tar.gz ; \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/moosefs-LATEST.tar.gz ; \
else \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/$(distdir).tar.gz ; \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/$(distdir)-$(RELEASE).tar.gz ; \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/moosefs-4.x-LATEST.tar.gz ; \
ln -sf $(distdir)-b$(BUILDNO).tar.gz ../moosefs-dist/moosefs-LATEST.tar.gz ; \
fi
|