Refactor hex loading code
[emu8051.git] / Makefile.am
index db1bf04..c15bf3a 100644 (file)
@@ -1,14 +1,13 @@
 ## Makefile.am -- Process this file with automake to produce Makefile.in
 
+.PHONY: changelog
+
 AUTOMAKE_OPTIONS = gnu
 
-SUBDIRS = src doc
+SUBDIRS = src/common src/cli src/gtk data doc tests
 
-EXTRA_DIST = bootstrap \
-             $(ac_aux_dir)/debug.m4 \
-             $(ac_aux_dir)/gtk2.m4 \
-             pixmaps/*.xpm \
-             test_files/*
+## We want these in the dist tarball
+EXTRA_DIST = pixmaps
 
 ACLOCAL = aclocal -I $(ac_aux_dir)
 
@@ -16,10 +15,21 @@ CLEANFILES = *~
 
 DISTCLEANFILES = .deps/*.P
 
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in stamp-h.in \
-                       $(ac_aux_dir)/depcomp $(ac_aux_dir)/install-sh $(ac_aux_dir)/missing \
+MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in \
+                       stamp-h.in ChangeLog $(ac_aux_dir)/depcomp \
+                       $(ac_aux_dir)/install-sh $(ac_aux_dir)/missing \
                        $(ac_aux_dir)/mkinstalldirs $(ac_aux_dir)/config.guess \
-                       $(ac_aux_dir)/config.sub $(ac_aux_dir)/ltmain.sh
-
-
-
+                       $(ac_aux_dir)/config.sub $(ac_aux_dir)/ltmain.sh \
+                       $(ac_aux_dir)/compile \
+                       $(ac_aux_dir)/test-driver \
+                       $(ac_aux_dir)/ar-lib
+
+changelog:
+       @if test -d $(srcdir)/.git; then          \
+         $(srcdir)/build-aux/gitlog-to-changelog \
+           --format='%s%n%n%b%n'                 \
+           --no-cluster                          \
+           --strip-tab                           \
+           --strip-cherry-pick                   \
+           >ChangeLog;                           \
+       fi