1
0
mirror of synced 2026-01-21 09:53:08 +00:00

2005-12-17 14:23:11 by steve

Initial, minimal, makefile.
This commit is contained in:
steve 2005-12-17 14:23:11 +00:00
parent 89e2c70498
commit 1ca774e54a

64
Makefile Normal file
View File

@ -0,0 +1,64 @@
#
# Utility makefile for people working with Yawns.
#
#
# Only used to build distribution tarballs.
#
DIST_PREFIX = /tmp
VERSION = `date +%d-%m-%y`
BASE = xen-tools
nop:
@echo "Valid targets are (alphabetically) :"
@echo " "
@echo " clean - Remove bogus files."
@echo " commit - Commit changes, after running check."
@echo " diff - Run a 'cvs diff'."
@echo " update - Update from the CVS repository."
@echo " "
.PHONY:
@true
clean:
@find . -name '.*~' -exec rm \{\} \;
@find . -name '.#*' -exec rm \{\} \;
@find . -name '*~' -exec rm \{\} \;
@find . -name '*.bak' -exec rm \{\} \;
@find . -name 'tags' -exec rm \{\} \;
commit: test
cvs -z3 commit
diff:
cvs diff --unified 2>/dev/null
release: clean
rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)
rm -f $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz
cp -R . $(DIST_PREFIX)/$(BASE)-$(VERSION)
find $(DIST_PREFIX)/$(BASE)-$(VERSION) -name "CVS" -print | xargs rm -rf
cd $(DIST_PREFIX) && tar --exclude-from=$(BASE)-$(VERSION)/.cvsignore --exclude=.cvsignore --exclude=stats -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/
gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar
mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz .
rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)
test:
@perl -MTest::Harness -e '$$Test::Harness::verbose=0; runtests @ARGV;' tests/*.t
test-verbose:
@perl -MTest::Harness -e '$$Test::Harness::verbose=1; runtests @ARGV;' tests/*.t
update: tags
cvs -z3 update -A -d 2>/dev/null