Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 390211
Collapse All | Expand All

(-)a/makefile.in (-7 / +7 lines)
Lines 4-10 all: $(APPNAME) docs build-mo Link Here
4
4
5
PROJ=mp
5
PROJ=mp
6
6
7
ADD_DOCS=AUTHORS README COPYING RELEASE_NOTES \
7
ADD_DOCS=AUTHORS README RELEASE_NOTES \
8
	mp_templates.sample doc/mp_function_reference.html
8
	mp_templates.sample doc/mp_function_reference.html
9
GRUTATXT_DOCS=doc/mp_index.html doc/mp_cookbook.html doc/mp_internals.html \
9
GRUTATXT_DOCS=doc/mp_index.html doc/mp_cookbook.html doc/mp_internals.html \
10
	doc/mp_configuration.html doc/mp_data_model.html \
10
	doc/mp_configuration.html doc/mp_data_model.html \
Lines 26-35 version: Link Here
26
	$(CC) $(CFLAGS) -I. `cat config.cflags` -c $<
26
	$(CC) $(CFLAGS) -I. `cat config.cflags` -c $<
27
27
28
$(MPDM)/libmpdm.a:
28
$(MPDM)/libmpdm.a:
29
	( cd $(MPDM); $(MAKE) )
29
	$(MAKE) -C $(MPDM)
30
30
31
$(MPSL)/libmpsl.a: $(MPDM)/libmpdm.a
31
$(MPSL)/libmpsl.a: $(MPDM)/libmpdm.a
32
	( cd $(MPSL); $(MAKE) )
32
	$(MAKE) -C $(MPSL)
33
33
34
dep:
34
dep:
35
	gcc -MM *.c `cat config.cflags` > makefile.depend
35
	gcc -MM *.c `cat config.cflags` > makefile.depend
Lines 88-95 $(APPNAME).1: doc/mp_man.txt Link Here
88
	grutatxt -m man -t "Minimum Profit" < doc/mp_man.txt > $(APPNAME).1
88
	grutatxt -m man -t "Minimum Profit" < doc/mp_man.txt > $(APPNAME).1
89
89
90
docs: $(DOCS)
90
docs: $(DOCS)
91
	(cd $(MPDM); $(MAKE) docs)
91
	$(MAKE) -C $(MPDM) docs
92
	(cd $(MPSL); $(MAKE) docs)
92
	$(MAKE) -C $(MPSL) docs
93
93
94
distcopy: distclean docs
94
distcopy: distclean docs
95
	mkdir -p $(DIST_TARGET) ; \
95
	mkdir -p $(DIST_TARGET) ; \
Lines 134-141 install: $(INSTALL_MSG) installdoc install-mo Link Here
134
134
135
installdoc:
135
installdoc:
136
	./mkinstalldirs $(PREFIX)/share/doc/$(APPNAME)
136
	./mkinstalldirs $(PREFIX)/share/doc/$(APPNAME)
137
	( cd $(MPDM); $(MAKE) installdoc )
137
	$(MAKE) -C $(MPDM) installdoc
138
	( cd $(MPSL); $(MAKE) installdoc )
138
	$(MAKE) -C $(MPSL) installdoc
139
	install -m 644 doc/* $(PREFIX)/share/doc/$(APPNAME)
139
	install -m 644 doc/* $(PREFIX)/share/doc/$(APPNAME)
140
	install -m 644 $(ADD_DOCS) $(PREFIX)/share/doc/$(APPNAME)
140
	install -m 644 $(ADD_DOCS) $(PREFIX)/share/doc/$(APPNAME)
141
	[ -f doc/mp_index.html ] && install -m 644 doc/mp_index.html $(PREFIX)/share/doc/$(APPNAME)/index.html || true
141
	[ -f doc/mp_index.html ] && install -m 644 doc/mp_index.html $(PREFIX)/share/doc/$(APPNAME)/index.html || true

Return to bug 390211