Makefile.am 1.13 KB
Newer Older
Thomas Leonard's avatar
Thomas Leonard committed
1 2
## Process this file with automake to produce Makefile.in

3 4
SUBDIRS=po

Thomas Leonard's avatar
Thomas Leonard committed
5 6
AUTOMAKE_OPTIONS = foreign

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

10 11 12
bin_PROGRAMS = update-mime-database
update_mime_database_SOURCES = update-mime-database.c

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

15 16 17 18 19 20 21 22 23 24 25
EXTRA_DIST = \
	shared-mime-info-spec.xml	\
	freedesktop.org.xml.in		\
	$(packages_DATA) 		\
	README				\
	$(man_MANS)			\
	intltool-extract.in		\
	intltool-merge.in		\
	intltool-update.in

CLEANFILES = intltool-extract intltool-merge intltool-update freedesktop.org.xml
26 27 28

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

30 31 32
@INTLTOOL_XML_RULE@
@INTLTOOL_DESKTOP_RULE@

33 34
install-data-hook: 
	$(DESTDIR)"$(bindir)/update-mime-database" "$(DESTDIR)${mimedir}"
Thomas Leonard's avatar
Thomas Leonard committed
35 36

uninstall-hook:
37 38 39 40
	for media in text application image audio inode video message model multipart; do rm -f "$(DESTDIR)${mimedir}/$${media}/"*.xml; done
	rm -f "$(DESTDIR)${mimedir}/globs"
	rm -f "$(DESTDIR)${mimedir}/magic"
	rm -f "$(DESTDIR)${mimedir}/XMLnamespaces"
41 42 43

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