.
[gnulib.git] / modules / getopt
index 0446a4a..ee754bc 100644 (file)
@@ -9,7 +9,8 @@ lib/getopt_int.h
 m4/getopt.m4
 
 Depends-on:
-gettext
+gettext-h
+unistd
 
 configure.ac:
 gl_GETOPT
@@ -18,12 +19,11 @@ Makefile.am:
 BUILT_SOURCES += $(GETOPT_H)
 EXTRA_DIST += getopt_.h getopt_int.h
 
-# We need the following in order to create an <getopt.h> when the system
+# We need the following in order to create <getopt.h> when the system
 # doesn't have one that works with the given compiler.
-all-local $(lib_OBJECTS): $(GETOPT_H)
 getopt.h: getopt_.h
-       cp $(srcdir)/getopt_.h $@-t
-       mv $@-t $@
+       cp -f $(srcdir)/getopt_.h $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += getopt.h getopt.h-t
 
 Include:
@@ -34,4 +34,3 @@ LGPL
 
 Maintainer:
 all, glibc
-