Makefile.am 2.76 KB
Newer Older
Kevin Vandersloot's avatar
Kevin Vandersloot committed
1
## Process this file with automake to produce Makefile.in
2
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
Kevin Vandersloot's avatar
Kevin Vandersloot committed
3

4
SUBDIRS = po scripts src help
Kevin Vandersloot's avatar
Kevin Vandersloot committed
5

6 7 8 9 10 11
ui_files = \
	data/preferences.ui \
	data/renice.ui \
	data/lsof.ui \
	data/openfiles.ui \
	data/interface.ui \
12
	data/menus.ui
13

14 15 16
pixmap_files = \
	pixmaps/download.svg \
	pixmaps/upload.svg
17

18 19 20
org.gnome.gnome-system-monitor.policy.in: org.gnome.gnome-system-monitor.policy.in.in Makefile
	$(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@

Kevin Vandersloot's avatar
Kevin Vandersloot committed
21
EXTRA_DIST = \
22
	$(ui_files) \
23
	$(appdata_in_files) \
24
	$(pixmap_files) \
25
	org.gnome.gnome-system-monitor.policy.in.in \
26
	gnome-system-monitor.desktop.in \
27
	gnome-system-monitor-kde.desktop.in \
Robert Roth's avatar
Robert Roth committed
28
	gnome-system-monitor.doap
Kevin Vandersloot's avatar
Kevin Vandersloot committed
29

30 31 32
polkit_policydir = $(datadir)/polkit-1/actions
polkit_policy_in_files = org.gnome.gnome-system-monitor.policy.in
polkit_policy_DATA = $(polkit_policy_in_files:.policy.in=.policy)
Robert Roth's avatar
Robert Roth committed
33 34
$(polkit_policy_DATA): %.policy: %.policy.in
	$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
35

36
Applicationsdir = $(datadir)/applications
37
Applications_in_files = gnome-system-monitor.desktop.in gnome-system-monitor-kde.desktop.in
38
Applications_DATA = $(Applications_in_files:.desktop.in=.desktop)
39 40
$(Applications_DATA): %.desktop: %.desktop.in
	$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
41

42
appdatadir = $(datadir)/metainfo
43 44
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = gnome-system-monitor.appdata.xml.in
Robert Roth's avatar
Robert Roth committed
45 46
$(appdata_DATA): $(appdata_in_files)
	$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
Kevin Vandersloot's avatar
Kevin Vandersloot committed
47

48
distuninstallcheck_listfiles = find . -type f -print | grep -v 'scrollkeeper'
Kevin Vandersloot's avatar
Kevin Vandersloot committed
49

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
if MAINTAINER_MODE
dist-hook: dist-changelog
else
dist-hook:
endif

.PHONY: dist-changelog

dist-changelog:
	$(AM_V_at)if git --git-dir=$(top_srcdir)/.git --work-tree=$(top_srcdir) \
		log --no-merges --date=short --pretty='tformat:%cd  %an  <%ae>%n%n%s%n%n%b' a5b4b868024f89e07fb9e1bf35d94df60568d841.. | \
	 $(SED)	-e '/^[12]...-[01].-[0123].  [^<>]*  <[^<>]*>$$/,/^$$/ b' \
		-e '/[^	 ]/,/^[	 ]*$$/ !d' \
		-e 's/^[	 ]*/	/' \
		-e 's/^[	 ]*$$//' >.ChangeLog.tmp; \
	then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
	else rm -f .ChangeLog.tmp; exit 1; fi

dist_noinst_DATA = \
	ChangeLog.pre-git

71 72 73 74
check-local: $(appdata_DATA) $(Applications_DATA) \
             $(APPDATA_VALIDATE) $(appdata_DATA) \
             $(DESKTOP_FILE_VALIDATE) $(Applications_DATA)

75
DISTCLEANFILES = \
76
    $(appdata_DATA) \
77
	gnome-system-monitor.desktop  \
78
	gnome-system-monitor-kde.desktop  \
79
	org.gnome.gnome-system-monitor.policy \
80
    org.gnome.gnome-system-monitor.policy.in 
81

82 83 84 85 86 87
GITIGNOREFILES = \
	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
	$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
    *.make \
    m4

88
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
89 90

-include $(top_srcdir)/git.mk