Makefile.am 670 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

11
EXTRA_DIST = shared-mime-info-spec.xml freedesktop.org.xml README
12 13 14

CFLAGS = @CFLAGS@ `@PKG_CONFIG@ --cflags libxml-2.0 glib-2.0`
LDFLAGS = @LDFLAGS@ `@PKG_CONFIG@ --libs libxml-2.0 glib-2.0`
15 16

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

uninstall-hook:
	rm "${mimedir}"/{text,application,image,audio}/*.xml
	rm "${mimedir}"/{inode,video,message,model,multipart}/*.xml
	rm "${mimedir}"/{globs,magic}