add packaging
[platform/upstream/time.git] / Makefile.am
1 bin_PROGRAMS = time
2 info_TEXINFOS = time.texi
3 time_SOURCES = time.c getopt.c getopt1.c error.c resuse.c version.c \
4         getopt.h getpagesize.h resuse.h port.h wait.h
5 EXTRA_DIST = texinfo.tex
6
7 DISTCLEANFILES = stamp-v version.c
8 version.c: stamp-v
9 stamp-v: Makefile
10         rm -f t-version.c
11         echo 'const char *version_string = "'GNU @PACKAGE@ @VERSION@'";' \
12                 > t-version.c
13         if cmp -s version.c t-version.c; then   \
14           rm t-version.c;                       \
15         else                                    \
16           mv t-version.c version.c;             \
17         fi
18         echo timestamp > $@