First drop of aptitude for Maemo
[aptitude] / Makefile.am
1 MAINTAINERCLEANFILES=Makefile.in aclocal.m4 config.h.in
2
3 # Do this the simple way -- it means "make dist" will fail if you
4 # disable stuff, and has other ugliness, but it is much easier and
5 # more maintainable than the "correct" alternatives.
6 SRCDIRS=@SRCDIRS@
7 DOCDIRS=@DOCDIRS@
8
9 SUBDIRS=$(SRCDIRS) $(DOCDIRS) m4 po
10
11 dist_bin_SCRIPTS = aptitude-create-state-bundle aptitude-run-state-bundle
12
13 MANPAGE_LOCALES=gl it pl
14
15 TLMANPAGES = $(wildcard $(srcdir)/aptitude.??.8)
16 TLHELPTXTS = help.txt $(wildcard $(srcdir)/help-??.txt) $(wildcard $(srcdir)/help-??_??.txt)
17 TLDEFAULTS = $(wildcard aptitude-defaults.??) $(wildcard aptitude-defaults.??_??)
18 EXTRA_DIST = config.rpath  ChangeLog.SVN Doxyfile.in FAQ README.i18n README.SMART-POINTERS README.THREADS README.CWIDGET aptitude-hackers-guide.txt aclocal.m4 \
19         function_groups function_pkgs aptitude-defaults \
20         section-descriptions \
21         $(TLDEFAULTS) \
22         $(TLMANPAGES) $(TLHELPTXTS)
23
24 pkgdatadir=$(datadir)/$(PACKAGE)
25
26 pkgdata_DATA = $(TLHELPTXTS) COPYING NEWS FAQ \
27         function_groups function_pkgs aptitude-defaults section-descriptions \
28         $(TLDEFAULTS)
29
30 install-data-local:
31         [ -d $(DESTDIR)$(STATEDIR) ] || $(mkinstalldirs) $(DESTDIR)$(STATEDIR)
32 # FIXME: this really ought to use the autoconf directory variables
33
34         for l in $(MANPAGE_LOCALES); do \
35           $(mkinstalldirs) $(DESTDIR)$(mandir)/$$l/man8; \
36           $(INSTALL_DATA) $(srcdir)/aptitude.$$l.8 $(DESTDIR)$(mandir)/$$l/man8/aptitude.8; \
37         done
38
39 #uninstall-local:
40 #rm -fr $(DESTDIR)$(STATEDIR)
41 # Is -r a good idea here?
42
43
44 ACLOCAL_AMFLAGS = -I m4