summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 879a72db71ce44af84cb720a4626887717b93c27 (plain)
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
## Process this file with automake to produce Makefile.in

NULL =

SUBDIRS = data udisks src tools po doc

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

EXTRA_DIST = 			\
	HACKING 		\
	$(NULL)

DISTCHECK_CONFIGURE_FLAGS=							\
	--enable-gtk-doc 							\
	--disable-introspection							\
	--with-udevdir=$$dc_install_base/$(udevdir)				\
	--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)	\
	$(NULL)

sign : dist
	gpg --armor --detach-sign --output udisks-$(VERSION).tar.bz2.sign udisks-$(VERSION).tar.bz2

publish : sign
	scp udisks-$(VERSION).tar.bz2 udisks-$(VERSION).tar.bz2.sign "david@people.freedesktop.org:/srv/udisks.freedesktop.org/www/releases/"

publish-docs :
	gtkdoc-rebase --html-dir doc/html --online
	ssh "david@people.freedesktop.org" "mkdir -p /srv/udisks.freedesktop.org/www/docs/$(VERSION)"
	scp doc/html/* "david@people.freedesktop.org:/srv/udisks.freedesktop.org/www/docs/$(VERSION)"
	ssh "david@people.freedesktop.org" "rm -f /srv/udisks.freedesktop.org/www/docs/latest; ln -s $(VERSION) /srv/udisks.freedesktop.org/www/docs/latest"

# publish docs readable from http://udisks.freedesktop.org/docs/master/ (instead of latest)
#
# This is useful for work-in-progress when hacking on master and you want
# to easily share API ideas etc. with others without requiring them to
# build master themselves
publish-docs-master :
	gtkdoc-rebase --html-dir doc/html --online
	ssh "david@people.freedesktop.org" "rm -rf /srv/udisks.freedesktop.org/www/docs/master; mkdir -p /srv/udisks.freedesktop.org/www/docs/master"
	scp doc/html/* "david@people.freedesktop.org:/srv/udisks.freedesktop.org/www/docs/master"

clean-local :
	rm -f *~