chiark / gitweb /
libudev: handle "device" link as parent, handle "class" "block" as "subsystem"
[elogind.git] / Makefile.am
1 SUBDIRS = \
2         udev \
3         rules \
4         extras
5
6 udevconfdir = $(sysconfdir)/udev
7 udevconf_DATA = \
8         udev.conf
9
10 EXTRA_DIST = \
11         udev.conf \
12         docs \
13         autogen.sh
14
15 PREVIOUS_VERSION = `expr $(VERSION) - 1`
16
17 distclean-local:
18         rm -f *~
19         rm -rf autom4te.cache
20         rm -f depcomp aclocal.m4 config.h.in configure install-sh
21         rm -f Makefile.in missing config.guess config.sub ltmain.sh
22         rm -rf udev-test-install
23         rm -f udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2
24
25 changelog:
26         @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
27         @ mv ChangeLog ChangeLog.tmp
28         @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
29         @ echo "============================================" >> ChangeLog
30         @ echo >> ChangeLog
31         @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog  >> ChangeLog
32         @ echo >> ChangeLog
33         @ cat ChangeLog
34         @ cat ChangeLog.tmp >> ChangeLog
35         @ rm ChangeLog.tmp
36
37 test-run:
38         cd test && ./udev-test.pl
39
40 test-install:
41         rm -rf $(PWD)/udev-test-install/
42         make DESTDIR=$(PWD)/udev-test-install install
43         tree $(PWD)/udev-test-install/
44
45 git-release:
46         head -1 ChangeLog | grep -q "to v$(VERSION)"
47         head -1 NEWS | grep -q "udev $(VERSION)"
48         git commit -a -m "release $(VERSION)"
49         cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
50         git gc --prune