aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: d50b78598196f9af777cfd78f8ed4b4233e5d259 (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
# $Id$
#

if BUILD_KDE
KDESUB = kde2
else
KDESUB =
endif

SUBDIRS = intl po lib ncpd plpnfsd plpftp plpbackup plpprint sisinstall \
	$(KDESUB) doc .
EXTRA_DIST = CHANGES COPYING README TODO INSTALL ABOUT-NLS include/*.h* \
	etc/*magic etc/*.in etc/*.c etc/psidump* patches conf/m4/kde/*.m4 \
	conf/m4/plptools/*.m4 conf/[a-l]* conf/missing conf/mkinstalldirs \
	debian
DISTCLEANFILES = etc/psion etc/psion.SuSE etc/psion.SuSE8
AUTOMAKE_OPTIONS = foreign

TMPDEST=
#
# remove all intermediate files that can be recreated using
# Makefile.cvs
#
maintainer-clean-local:
	rm -f configure aclocal.m4 Makefile.in libtool \
	conf/config.guess conf/config.sub conf/install-sh conf/ltconfig \
	conf/ltmain.sh conf/missing conf/mkinstalldirs \
	etc/*.spec ABOUT-NLS
	find . -name "*~" -exec rm -f {} \;
	find . -name "\.\#*" -exec rm -f {} \;
	sh conf/intlclean

install-data-local:
	test "$(initdir)" != "none" && \
		install -m 755 etc/psion $(DESTDIR)$(initdir)/psion || :

dist-hook:
	$(MAKE) TMPDEST=$(distdir)/ kdoc specfile
	$(MAKE) -C $(distdir)/kde2 -f Makefile.am am_edit
	conf/cvs2cl -W 1800 -S --no-wrap --prune --gmt -f $(distdir)/ChangeLog

kdoc:
	kdoc -d $(TMPDEST)doc/api -n libplp --strip-h-path $(TMPDEST)lib/*.h

specfile:
	sed -e "s/_VERSION_/$(VERSION)/" < $(TMPDEST)etc/plptools.spec.in \
		> $(TMPDEST)etc/plptools.spec