Makefile.am 807 Bytes
Newer Older
Thomas Leonard's avatar
Thomas Leonard committed
1 2 3 4
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = foreign

5
packagesdir = $(mimedir)/packages
6
packages_DATA = freedesktop.org.xml
Thomas Leonard's avatar
Thomas Leonard committed
7

8 9 10
bin_PROGRAMS = update-mime-database
update_mime_database_SOURCES = update-mime-database.c

Thomas Leonard's avatar
Thomas Leonard committed
11 12 13
man_MANS = update-mime-database.1

EXTRA_DIST = shared-mime-info-spec.xml $(packages_DATA) README $(man_MANS)
14 15 16

CFLAGS = @CFLAGS@ `@PKG_CONFIG@ --cflags libxml-2.0 glib-2.0`
LDFLAGS = @LDFLAGS@ `@PKG_CONFIG@ --libs libxml-2.0 glib-2.0`
17 18

install-data-hook:
Thomas Leonard's avatar
Thomas Leonard committed
19 20 21
	"${bindir}/update-mime-database" "${mimedir}"

uninstall-hook:
22 23 24
	for media in text application image audio inode video message model multipart; do rm -f "${mimedir}/$${media}/"*.xml; done
	rm -f "${mimedir}/globs"
	rm -f "${mimedir}/magic"
25 26 27

check:
	xmllint --noout --valid $(srcdir)/freedesktop.org.xml