chiark / gitweb /
move syslog wrapper to libudev
[elogind.git] / Makefile.am
1 include $(top_srcdir)/Makefile.am.inc
2
3 SUBDIRS = \
4         libudev \
5         udev \
6         rules \
7         extras
8
9 udevconfdir = $(sysconfdir)/udev
10 udevconf_DATA = \
11         udev.conf
12
13 EXTRA_DIST = \
14         udev.conf \
15         docs \
16         autogen.sh
17
18 CLEANFILES = \
19         udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2
20
21 ACLOCAL_AMFLAGS = -I m4
22
23 clean-local:
24         rm -rf udev-test-install
25
26 distclean-local:
27         rm -rf autom4te.cache
28
29 PREVIOUS_VERSION = `expr $(VERSION) - 1`
30
31 changelog:
32         @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
33         @ mv ChangeLog ChangeLog.tmp
34         @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
35         @ echo "============================================" >> ChangeLog
36         @ echo >> ChangeLog
37         @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog  >> ChangeLog
38         @ echo >> ChangeLog
39         @ cat ChangeLog
40         @ cat ChangeLog.tmp >> ChangeLog
41         @ rm ChangeLog.tmp
42
43 test-run:
44         cd test && ./udev-test.pl
45
46 test-install:
47         rm -rf $(PWD)/udev-test-install/
48         make DESTDIR=$(PWD)/udev-test-install install
49         tree $(PWD)/udev-test-install/
50
51 git-release:
52         head -1 ChangeLog | grep -q "to v$(VERSION)"
53         head -1 NEWS | grep -q "udev $(VERSION)"
54         git commit -a -m "release $(VERSION)"
55         cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
56         git gc
57         git prune