10 ADD_DOCS
=RELEASE_NOTES
11 GRUTATXT_DOCS
=doc
/mpdm_overview.html doc
/mpdm_api.html
12 MP_DOCCER_DOCS
=doc
/mpdm_api.txt
14 OBJS
=mpdm_v.o mpdm_a.o mpdm_h.o mpdm_d.o mpdm_s.o mpdm_f.o \
17 DIST_TARGET
=/tmp
/$(PROJ
)-$(VERSION
)
19 ##################################################################
25 $(CC
) $(CFLAGS
) `cat config.cflags` -c
$<
28 gcc
-MM
*.c
> makefile.depend
31 $(AR
) rv
$(LIB
) $(OBJS
)
33 stress
: stress.c
$(LIB
)
34 $(CC
) $(CFLAGS
) `cat config.ldflags` stress.c
-L.
-lmpdm
-o
$@
41 doc
/mpdm_api.txt
: mpdm_
*.c
42 mp_doccer mpdm_
*.c
-o doc
/mpdm_api
-f grutatxt \
43 -t
"MPDM C API ($(VERSION))" \
44 -a
'Angel Ortega - angel@triptico.com'
52 rm -f
$(TARGET
) $(LIB
) $(OBJS
) *.o
tags *.
tar.gz stress
55 rm -f config.h config.
cflags config.
ldflags makefile.opts .config.log Makefile
57 realclean: distclean docsclean
59 realdistclean
: realclean
62 mkdir
-p
$(DIST_TARGET
) ; \
63 tar cf
- * |
(cd
$(DIST_TARGET
) ; tar xf
-)
66 (cd
/tmp
; tar czf
- $(PROJ
)-$(VERSION
)/* ) > $(PROJ
)-$(VERSION
).
tar.gz
; \
73 for a in po
/*.po
; do \
74 B
=`basename $$a .po` ; \
75 mkdir
-p po
/$$B/LC_MESSAGES
; \
76 msgfmt
-o po
/$$B/LC_MESSAGES
/stress.mo
$$a ; \
81 install -m
644 doc
/* $(DOCDIR
)/
82 for f in README AUTHORS COPYING TODO RELEASE_NOTES
; do \
83 [ -f
$$f ] && install -m
644 $$f $(DOCDIR
)/$$f.
$(PROJ
) ; \