X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=5da4779fb89e2a9dd9da5069168fc6ebbb99f5da;hp=60f54ea9e4118488d09284691e61457ac3590e30;hb=8bbe3ca4277a7bf8411caf091cd001ca48131b63;hpb=e1b802a7dbcd88fc4965dbee9faf55c6bd3f5601 diff --git a/Makefile.am b/Makefile.am index 60f54ea9e..5da4779fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,32 +1,43 @@ +include $(top_srcdir)/Makefile.am.inc + SUBDIRS = \ + docs \ + libudev \ udev \ rules \ extras udevconfdir = $(sysconfdir)/udev -udevconf_DATA = \ +dist_udevconf_DATA = \ udev.conf EXTRA_DIST = \ - udev.conf \ - docs \ autogen.sh +CLEANFILES = \ + udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2 + +ACLOCAL_AMFLAGS = -I m4 + +DISTCHECK_CONFIGURE_FLAGS = \ + --enable-gtk-doc \ + --enable-extras + +clean-local: + rm -rf udev-test-install + distclean-local: - rm -f *~ rm -rf autom4te.cache - rm -f depcomp aclocal.m4 config.h.in configure install-sh - rm -f Makefile.in missing config.guess config.sub ltmain.sh - rm -rf udev-test-install - rm -f udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2 + +PREVIOUS_VERSION = `expr $(VERSION) - 1` changelog: - @ head -1 ChangeLog | grep -q "to v$(shell echo $$(($(VERSION) - 1)))" + @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)" @ mv ChangeLog ChangeLog.tmp - @ echo "Summary of changes from v$(shell echo $$(($(VERSION) - 1))) to v$(VERSION)" >> ChangeLog + @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog @ echo "============================================" >> ChangeLog @ echo >> ChangeLog - @ git log --pretty=short $(shell echo $$(($(VERSION) - 1)))..HEAD | git shortlog >> ChangeLog + @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog @ echo >> ChangeLog @ cat ChangeLog @ cat ChangeLog.tmp >> ChangeLog @@ -40,3 +51,14 @@ test-install: make DESTDIR=$(PWD)/udev-test-install install tree $(PWD)/udev-test-install/ +git-release: + head -1 ChangeLog | grep -q "to v$(VERSION)" + head -1 NEWS | grep -q "udev $(VERSION)" + git commit -a -m "release $(VERSION)" + cat .git/refs/heads/master > .git/refs/tags/$(VERSION) + git gc + git prune + +doc-sync: + rsync -av --delete libudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/libudev/ + rsync -av --delete extras/gudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/gudev/