Version: 1.5.3 -> 1.5.4cvs
[mdsms.git] / Makefile.am
1 # $Id$
2
3 include $(top_srcdir)/Makefile-head.am
4
5 AUTOMAKE_OPTIONS = dist-tarZ
6 SUBDIRS = macros intl . po
7 ## to automatically rebuild aclocal.m4 if any of the macros in
8 ## `macros/' change
9 @MAINT@include macros/macros.dep
10 @MAINT@macros/macros.dep: macros/Makefile.am
11 @MAINT@ cd macros && $(MAKE) macros.dep
12
13 EXTRA_DIST += autogen.pl mdsms.1.c mdsms.1.in ChangeLog ABOUT-NLS mdsms.spec.in INSTALL mkinstalldirs
14
15 CLEANFILES += mdsms.1 mdsms.1.in2
16
17 bin_PROGRAMS += mdsms
18 man_MANS = mdsms.1
19 noinst_PROGRAMS = manfmt
20 noinst_SCRIPTS = mdsms.1 mdsms.1.in2
21 noinst_HEADERS += setup.h getopt.h
22
23 manfmt_SOURCES = manfmt.c
24
25 mdsms_SOURCES = mdsms.c
26 mdsms_LDADD = $(LIBOBJS) $(INTLLIBS)
27
28 mdsms.1.in2: mdsms.1.in
29         grep -v Id: > mdsms.1.in2 mdsms.1.in
30
31 mdsms.1.o: mdsms.1.c mdsms.1.in2 config.h setup.h
32         $(CPP) > mdsms.1.o mdsms.1.c
33
34 mdsms.1: manfmt mdsms.1.o
35         ./manfmt > mdsms.1 < mdsms.1.o
36
37 MAINTAINERCLEANFILES+= \
38                 ChangeLog
39
40 CLEANFILES+= \
41                 ChangeLog.bak
42
43 if MAINTAINER_MODE
44 ChangeLog:
45         cvs2cl --usermap cvs2cl-usermap --window 3600 --separate-header --no-wrap --file $@ . $(REACTOS_SOURCES)
46
47 else
48 ChangeLog:
49         touch $@
50
51 endif