From 54449b5847d566102c1eb12c20d55dc4d61db6a8 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 3 Jul 2002 18:37:44 +0000 Subject: [PATCH] Add compile_only --- Makefile.in | 4 ++-- src/print.c | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 737ab83f..b2bc64c6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -122,7 +122,7 @@ missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) -TAR = gtar +TAR = tar GZIP_ENV = --best SOURCES = $(file_SOURCES) OBJECTS = $(file_OBJECTS) @@ -416,7 +416,7 @@ distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ - cp -pr $$d/$$file $(distdir)/$$file; \ + cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ diff --git a/src/print.c b/src/print.c index 57c154e7..38ca9d37 100644 --- a/src/print.c +++ b/src/print.c @@ -39,11 +39,12 @@ #include #ifndef lint -FILE_RCSID("@(#)$Id: print.c,v 1.37 2002/07/03 18:26:38 christos Exp $") +FILE_RCSID("@(#)$Id: print.c,v 1.38 2002/07/03 18:37:44 christos Exp $") #endif /* lint */ #define SZOF(a) (sizeof(a) / sizeof(a[0])) +#ifndef COMPILE_ONLY void mdump(struct magic *m) { @@ -127,6 +128,7 @@ mdump(struct magic *m) } (void) fprintf(stderr, ",\"%s\"]\n", m->desc); } +#endif /* * ckfputs - fputs, but with error checking @@ -191,6 +193,7 @@ magwarn(const char *f, ...) } +#ifndef COMPILE_ONLY char * fmttime(long v, int local) { @@ -224,3 +227,4 @@ fmttime(long v, int local) *rt = '\0'; return pp; } +#endif -- 2.50.1