aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.cvs
blob: 654309124816f6a830222b5e030beb47380b9548 (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
LIBTOOLFILES = config.guess config.sub ltconfig ltmain.sh
AUTOMAKEFILES = mkinstalldirs missing install-sh
CONFIGHIN = include/config.h.in
ACLOCAL = aclocal.m4
GETTEXT = intl/Makefile.in
GETTEXTDEP = Makefile.am.in configure.in.in

all:
	@echo "Use make devel for development, make dist for distribution"

strictbuild: devel
	rm -f config.cache
	./configure --prefix=/usr --mandir=/usr/share/man --enable-debug --enable-strict
	${MAKE}

build: 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
	$(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

$(CONFIGHIN): configure.in
	autoheader

$(LIBTOOLFILES):
	libtoolize --force

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

$(AUTOMAKEFILES): $(ACLOCAL) $(CONFIGHIN)
	automake --add-missing