Makefile.am 714 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
22
23
24
	"${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}