From e2e5b6f7d320763ebced0ab30fd5c3dfd07b35b8 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 27 Jun 2006 07:19:30 +0000 Subject: Rewritten for automatic updates --- lib/Makefile.am | 70 +++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 53 insertions(+), 17 deletions(-) (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index d63b914..3203b6e 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -25,22 +25,58 @@ noinst_LIBRARIES = libanubis.a libanubis_a_SOURCES = argcv.c argcv.h +libanubis_a_LIBADD = $(LIBOBJS) -EXTRA_DIST = \ - getline.h \ - getopt.h \ - getopt.h \ - getopt.c \ - getopt1.c \ - gettext.h \ - lbuf.h \ - lbuf.c \ - obstack.h \ - obstack.c \ - setenv.c \ - snprintf.c - -libanubis_a_LIBADD = @LIBOBJS@ - -## EOF +EXTRA_DIST = gettext.h lbuf.c lbuf.h setenv.c +BUILT_SOURCES = +MOSTLYCLEANFILES = + +##:## EOF marker for bootstrap script. Please, do not remove ##:## +## Do not change anything below this line ## +# exit +libanubis_a_SOURCES += exit.h + +# exitfail + +# getdelim + +# getline + +# getopt +BUILT_SOURCES += $(GETOPT_H) +EXTRA_DIST += getopt_.h getopt_int.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +getopt.h: getopt_.h + cp $(srcdir)/getopt_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += getopt.h getopt.h-t + +# getpass + +# gettext-h +libanubis_a_SOURCES += gettext.h + +# obstack + +# stdbool +BUILT_SOURCES += $(STDBOOL_H) +EXTRA_DIST += stdbool_.h + +# We need the following in order to create when the system +# doesn't have one that works. +stdbool.h: stdbool_.h + sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += stdbool.h stdbool.h-t + +# unistd +BUILT_SOURCES += $(UNISTD_H) + +# We need the following in order to create an empty placeholder for +# when the system doesn't have one. +unistd.h: + echo '/* Empty placeholder for $@. */' >$@ +MOSTLYCLEANFILES += unistd.h -- cgit v1.2.1