summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: bdaba09dd82123e8042bc086b3e7b211e1343a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
MAINTAINERCLEANFILES=Makefile.in aclocal.m4 config.h.in

# Do this the simple way -- it means "make dist" will fail if you
# disable stuff, and has other ugliness, but it is much easier and
# more maintainable than the "correct" alternatives.
SRCDIRS=@SRCDIRS@
DOCDIRS=@DOCDIRS@

SUBDIRS=$(SRCDIRS) $(DOCDIRS) m4 po tests

dist_bin_SCRIPTS = aptitude-create-state-bundle aptitude-run-state-bundle

MANPAGE_LOCALES=gl it pl

TLMANPAGES = $(wildcard $(srcdir)/aptitude.??.8)
TLHELPTXTS = help.txt $(wildcard $(srcdir)/help-??.txt) $(wildcard $(srcdir)/help-??_??.txt)
TLDEFAULTS = $(wildcard $(srcdir)/aptitude-defaults.??) $(wildcard $(srcdir)/aptitude-defaults.??_??)
EXTRA_DIST = config.rpath  ChangeLog.SVN Doxyfile.in FAQ README.i18n README.SMART-POINTERS README.THREADS README.CWIDGET aptitude-hackers-guide.txt aclocal.m4 \
	function_groups function_pkgs aptitude-defaults \
	section-descriptions \
	$(TLDEFAULTS) \
	$(TLMANPAGES) $(TLHELPTXTS)

pkgdatadir=$(datadir)/$(PACKAGE)

pkgdata_DATA = $(TLHELPTXTS) COPYING NEWS FAQ \
	function_groups function_pkgs aptitude-defaults section-descriptions \
	$(TLDEFAULTS)

dist_check_SCRIPTS = check_boost.sh

TESTS = check_boost.sh

install-data-local:
	[ -d $(DESTDIR)$(STATEDIR) ] || $(mkinstalldirs) $(DESTDIR)$(STATEDIR)
# FIXME: this really ought to use the autoconf directory variables

	for l in $(MANPAGE_LOCALES); do \
	  $(mkinstalldirs) $(DESTDIR)$(mandir)/$$l/man8; \
	  $(INSTALL_DATA) $(srcdir)/aptitude.$$l.8 $(DESTDIR)$(mandir)/$$l/man8/aptitude.8; \
	done

#uninstall-local:
#rm -fr $(DESTDIR)$(STATEDIR)
# Is -r a good idea here?


ACLOCAL_AMFLAGS = -I m4