10 ADD_DOCS
=RELEASE_NOTES
11 GRUTATXT_DOCS
=doc
/mpdm_overview.html
12 MP_DOCCER_DOCS
=doc
/mpdm_api.txt
13 G_AND_MP_DOCS
=doc
/mpdm_api.html
15 OBJS
=mpdm_v.o mpdm_a.o mpdm_h.o mpdm_d.o mpdm_s.o mpdm_f.o \
18 DIST_TARGET
=/tmp
/$(PROJ
)-$(VERSION
)
20 ##################################################################
26 $(CC
) $(CFLAGS
) `cat config.cflags` -c
$<
29 gcc
-MM
*.c
> makefile.depend
32 $(AR
) rv
$(LIB
) $(OBJS
)
34 stress
: stress.c
$(LIB
)
35 $(CC
) $(CFLAGS
) `cat config.ldflags` stress.c
-L.
-lmpdm
-o
$@
42 doc
/mpdm_api.txt
: mpdm_
*.c
43 mp_doccer mpdm_
*.c
-o doc
/mpdm_api
-f grutatxt \
45 -b
"This reference documents version $(VERSION) of the C API." \
46 -a
'Angel Ortega - angel@triptico.com'
51 rm -f doc
/mpdm_api.txt doc
/*.html
54 rm -f
$(TARGET
) $(LIB
) $(OBJS
) *.o
tags *.
tar.gz stress
57 rm -f config.h config.
cflags config.
ldflags makefile.opts .config.log Makefile
59 realclean: distclean docsclean
61 realdistclean
: realclean
64 mkdir
-p
$(DIST_TARGET
) ; \
65 tar cf
- * |
(cd
$(DIST_TARGET
) ; tar xf
-)
68 (cd
/tmp
; tar czf
- $(PROJ
)-$(VERSION
)/* ) > $(PROJ
)-$(VERSION
).
tar.gz
; \
75 for a in po
/*.po
; do \
76 B
=`basename $$a .po` ; \
77 mkdir
-p po
/$$B/LC_MESSAGES
; \
78 msgfmt
-o po
/$$B/LC_MESSAGES
/stress.mo
$$a ; \
83 install -m
644 doc
/* $(DOCDIR
)/
84 for f in README AUTHORS COPYING TODO RELEASE_NOTES
; do \
85 [ -f
$$f ] && install -m
644 $$f $(DOCDIR
)/$$f.
$(PROJ
) ; \