X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=Makefile.am;h=612522ae3495220f0c1ece0d4dca3258c8d9b92f;hp=31b3a78c221320e0351624bfb83c460939848ffb;hb=6a96f22d3c3e11f63ee17687a9de7f4c6ba854c5;hpb=e1aac87e10809e1f8fa9d0a7a4ebdde684d7ae35;ds=sidebyside diff --git a/Makefile.am b/Makefile.am index 31b3a78..612522a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,28 +1,51 @@ # $Id$ +include $(top_srcdir)/Makefile-head.am + AUTOMAKE_OPTIONS = dist-tarZ +SUBDIRS = macros intl . po +## to automatically rebuild aclocal.m4 if any of the macros in +## `macros/' change +@MAINT@include macros/macros.dep +@MAINT@macros/macros.dep: macros/Makefile.am +@MAINT@ cd macros && $(MAKE) macros.dep -EXTRA_DIST = autogen.sh mdsms.1.in ChangeLog +EXTRA_DIST += autogen.pl mdsms.1.c mdsms.1.in ChangeLog ABOUT-NLS mdsms.spec.in INSTALL mkinstalldirs -CLEANFILES = ChangeLog +CLEANFILES += mdsms.1 mdsms.1.in2 -bin_PROGRAMS = mdsms +bin_PROGRAMS += mdsms man_MANS = mdsms.1 -noinst_PROGRAMS = manfmt mdsms.1 -noinst_HEADERS = setup.h getopt.h +noinst_PROGRAMS = manfmt +noinst_SCRIPTS = mdsms.1 mdsms.1.in2 +noinst_HEADERS += setup.h getopt.h manfmt_SOURCES = manfmt.c mdsms_SOURCES = mdsms.c -mdsms_LDADD = @LIBOBJS@ +mdsms_LDADD = $(LIBOBJS) $(INTLLIBS) + +mdsms.1.in2: mdsms.1.in + grep -v Id: > mdsms.1.in2 mdsms.1.in -mdsms.1.o: mdsms.1.c mdsms.1.in config.h setup.h +mdsms.1.o: mdsms.1.c mdsms.1.in2 config.h setup.h $(CPP) > mdsms.1.o mdsms.1.c mdsms.1: manfmt mdsms.1.o ./manfmt > mdsms.1 < mdsms.1.o -.PHONY: ChangeLog +MAINTAINERCLEANFILES+= \ + ChangeLog + +CLEANFILES+= \ + ChangeLog.bak +if MAINTAINER_MODE ChangeLog: - rcs2log -u "short Jan Kratochvil short@ucw.cz" >ChangeLog + cvs2cl --usermap cvs2cl-usermap --window 3600 --separate-header --no-wrap --file $@ . $(REACTOS_SOURCES) + +else +ChangeLog: + touch $@ + +endif