diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-10 19:11:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-10 19:11:07 +0000 |
commit | f64c368593fd0746de88587e63caabe0ab210b50 (patch) | |
tree | 8eb3dbdc9c2f87c096d85d009774dc79cae0ddc9 /src | |
parent | 6d73fdb3efa5e350e84a0a5140f430e0c5dbd8fe (diff) | |
download | coreutils-f64c368593fd0746de88587e63caabe0ab210b50.tar.xz |
(fs.h): New rule to generate fs.h from stat.c.
(BUILT_SOURCES): Add fs.h, now that it's generated.
(EXTRA_DIST): Add extract-magic.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 729f4bf3d..d7dfc761a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,7 +19,7 @@ noinst_HEADERS = \ chown-core.h fs.h \ wheel.h wheel-size.h EXTRA_DIST = dcgen dircolors.hin tac-pipe.c \ - groups.sh nohup.sh wheel-gen.pl + groups.sh nohup.sh wheel-gen.pl extract-magic CLEANFILES = $(SCRIPTS) su INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir)/lib -I../lib @@ -192,6 +192,13 @@ false.c: true.c @chmod a-w $@-t mv $@-t $@ +BUILT_SOURCES += fs.h +fs.h: stat.c extract-magic + rm -f $@ + $(PERL) $(srcdir)/extract-magic $(srcdir)/stat.c > $@t + @chmod a-w $@t + mv $@t $@ + MAINTAINERCLEANFILES = $(BUILT_SOURCES) all_programs = \ |