include $(top_srcdir)/Makefile-head.am
AUTOMAKE_OPTIONS=gnu
-ACLOCAL_AMFLAGS=-I m4
-SUBDIRS=intl m4 macros src doc po
+ACLOCAL_AMFLAGS=-I macros
+SUBDIRS=macros src doc fonts yum.repos.d 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
+REACTOS_SOURCES= \
+ reactos/hal \
+ reactos/include \
+ reactos/ntoskrnl
+
EXTRA_DIST+= \
INSTALL \
- ABOUT-NLS \
- config.rpath \
+ THANKS \
mkinstalldirs \
captive.spec.in \
Makefile-head.am \
.vimrc \
.gdbinit \
ChangeLog \
- reactos/hal \
- reactos/include \
- reactos/ntoskrnl
+ $(REACTOS_SOURCES) \
+ debian/captive-lufs.files \
+ debian/captive-install.conffiles \
+ debian/captive-install.files \
+ debian/captive-install.postinst \
+ debian/captive-install.prerm \
+ debian/captive.conffiles \
+ debian/captive.docs \
+ debian/captive.files \
+ debian/captive.postinst \
+ debian/captive.postrm \
+ debian/changelog.in \
+ debian/control \
+ debian/copyright \
+ debian/rules \
+ cvs2cl-usermap \
+ gnome_vfs_read_entire_file.c \
+ build-static
+
+ROS_CVS:= \
+ $(foreach rosdir,$(REACTOS_SOURCES),$(shell find $(rosdir) -name CVS -type d))
+
+BUILT_SOURCES+= \
+ $(ROS_CVS)
+
+# Needed for dpkg-buildpackage(1):
+EXTRA_DIST+=debian/changelog
MAINTAINERCLEANFILES+= \
ChangeLog
-# FIXME: replace by cvs2cl.pl !
+CLEANFILES+= \
+ ChangeLog.bak
+
+if MAINTAINER_MODE
ChangeLog:
- rcs2log >$@
+ cvs2cl --usermap cvs2cl-usermap --window 3600 --separate-header --no-wrap --file $@ . $(REACTOS_SOURCES)
+
+else
+ChangeLog:
+ touch $@
+
+endif