X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgetopt;h=39751bf331a2f088303549ae6abe6c9067f3b308;hb=e349e3d9c187700b118e0bac80aedd2ea8e764bc;hp=26e506ca57a845a8ed7d950282e1fc429294ed42;hpb=d1aadab21bf8755e0fb75a838dc650e73f6ee78d;p=gnulib.git diff --git a/modules/getopt b/modules/getopt index 26e506ca5..39751bf33 100644 --- a/modules/getopt +++ b/modules/getopt @@ -2,7 +2,7 @@ Description: Process command line arguments. Files: -lib/getopt_.h +lib/getopt.in.h lib/getopt.c lib/getopt1.c lib/getopt_int.h @@ -17,15 +17,14 @@ 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 - rm -f $@-t $@ - cp $(srcdir)/getopt_.h $@-t - chmod a-x $@-t - mv $@-t $@ +getopt.h: getopt.in.h + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/getopt.in.h; \ + } > $@-t + mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t Include: