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
|
include Makefile.inc
NAMEVER=$(NAME)-$(VERSION)$(RELEASE)
TARBALL=$(NAMEVER).tar.bz2
SUBDIRS=include lib tools scripts etc
all install clean distclean:
@set -e; \
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
.PHONY: all install clean
check-api:
$(MAKE) -C include $@
.PHONY: check-api
dist: check-api tar
tar: $(TARBALL)
.PHONY: dist tar
$(TARBALL): clean
rm -f ../$(NAMEVER)
ln -s `pwd | awk -F / '{print $$NF}'` ../$(NAMEVER)
tar --directory .. --exclude-vcs --exclude .depend \
--exclude-from .gitignore \
-cvhjf ../$(TARBALL) $(NAMEVER)
rm -f $(TARBALL)
mv ../$(TARBALL) .
rm -f ../$(NAMEVER)
rpms: tar
rpmbuild -ta $(TARBALL) ${RPMB_ARGS}
.PHONY: rpms
cov: clean
rm -rf cov-int
cov-build --dir cov-int make
tar czf cov.tgz cov-int
rm -rf cov-int
git describe --tags HEAD
.PHONY: cov
# Add optional local rules
-include Makefile.local
|