aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.cvs
blob: a9893e82bba8d6ac20ae7850d1100f5108cee3ac (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
LIBTOOLFILES = conf/config.guess conf/config.sub conf/ltconfig conf/ltmain.sh
AUTOMAKEFILES = conf/mkinstalldirs conf/missing conf/install-sh
CONFIGHIN = include/config.h.in
ACLOCAL = conf/aclocal.m4
GETTEXT = intl/Makefile.in
GETTEXTDEP = conf/Makefile.am.in conf/configure.in.in
GV = $(shell gettextize --version|head -1|cut -d ' ' -f4|cut -d. -f2)

all:
	@echo "Use make devel for development, make dist for distribution"
	@echo $(KDEVER)

strictbuild: devel
	rm -f config.cache
	./configure --prefix=/usr --mandir=/usr/share/man --enable-debug --enable-kde --enable-strict
	make

build: devel
	rm -f config.cache
	./configure --prefix=/usr --mandir=/usr/share/man --enable-debug --enable-kde
	make

buildnox: devel
	rm -f config.cache
	./configure --prefix=/usr --mandir=/usr/share/man --enable-debug
	make

devel: $(GETTEXT) $(LIBTOOLFILES) $(AUTOMAKEFILES)
	autoconf
	touch include/stamp-h.in

dist: $(GETTEXT) $(LIBTOOLFILES) $(AUTOMAKEFILES)
	autoconf
	touch include/stamp-h.in
	./configure --enable-kde
	$(MAKE) dist

htmldoc:
	for f in doc/*.[0123456789] ; do \
		o=../web/htdocs/`basename $$f`.html; \
		man2html -H plptools.sourceforge.net -M "" $$f > $$o; \
	done

$(ACLOCAL):
	aclocal -I conf/m4/plptools -I conf/m4/kde $(M4SUB)

$(CONFIGHIN): acconfig.h configure.in
	autoheader

$(LIBTOOLFILES):
	libtoolize --force

$(GETTEXT): $(GETTEXTDEP)
	cp conf/configure.in.in configure.in
	cp conf/Makefile.am.in Makefile.am
	mkdir -p intl
ifeq ($(GV),11)
	echo n | gettextize --force --intl --no-changelog
	test -e po/Makevars || cp po/Makevars.template po/Makevars
	rm -f ChangeLog *~
else
	echo n | gettextize -f
endif
	-test -f po/ChangeLog~ && mv -f po/ChangeLog~ po/ChangeLog

$(AUTOMAKEFILES): $(ACLOCAL) $(CONFIGHIN)
	automake --add-missing
	make -C kde2 -f Makefile.am am_edit