9 DOCS
=doc
/mpdm_api.html doc
/mpdm_overview.html
11 OBJS
=mpdm_v.o mpdm_a.o mpdm_h.o mpdm_d.o mpdm_s.o mpdm_f.o \
14 DIST_TARGET
=/tmp
/$(PROJ
)-$(VERSION
)
16 ##################################################################
22 $(CC
) $(CFLAGS
) `cat config.cflags` -c
$<
25 gcc
-MM
*.c
> makefile.depend
28 $(AR
) rv
$(LIB
) $(OBJS
)
30 stress
: stress.c
$(LIB
)
31 $(CC
) $(CFLAGS
) `cat config.ldflags` stress.c
-L.
-lmpdm
-o
$@
33 doc
/index.html
: doc
/index.txt
36 doc
/mpdm_overview.html
: doc
/mpdm_overview.txt
39 doc
/mpdm_api.html
: mpdm_
*.c
40 -mp_doccer mpdm_
*.c
-o doc
/mpdm_api
-f html1 \
41 -t
"MPDM C API ($(VERSION))" \
42 -a
'Angel Ortega - angel@triptico.com'
50 rm -f
$(TARGET
) $(LIB
) $(OBJS
) *.o
tags *.
tar.gz stress
53 rm -f config.h config.
cflags config.
ldflags makefile.opts .config.log Makefile
56 mkdir
-p
$(DIST_TARGET
) ; \
57 tar cf
- * |
(cd
$(DIST_TARGET
) ; tar xf
-)
60 (cd
/tmp
; tar czf
- $(PROJ
)-$(VERSION
)/* ) > $(PROJ
)-$(VERSION
).
tar.gz
; \
67 for a in po
/*.po
; do \
68 B
=`basename $$a .po` ; \
69 mkdir
-p po
/$$B/LC_MESSAGES
; \
70 msgfmt
-o po
/$$B/LC_MESSAGES
/stress.mo
$$a ; \
74 -install -m
644 $(DOCS
) $(DOCDIR
)