X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgetopt;h=fa01d90d1d1a85d7b557c5aa6591d947db6b6cd0;hb=293ec82ede14e2a6f3443637e5a8fb9da9ce3cbe;hp=420250c3a171cd45cc6db0bfdf4017bf976ef31a;hpb=9029f098c318e509ee94912bdba51d58c79dd102;p=gnulib.git diff --git a/modules/getopt b/modules/getopt index 420250c3a..fa01d90d1 100644 --- a/modules/getopt +++ b/modules/getopt @@ -10,19 +10,21 @@ m4/getopt.m4 Depends-on: gettext-h +unistd configure.ac: gl_GETOPT Makefile.am: 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 $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/getopt_.h; \ + } > $@-t + mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t Include: