]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* examples/Makefile.in (INCLUDES): Added -I flags.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 19 Oct 2004 22:45:33 +0000 (00:45 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 19 Oct 2004 22:45:33 +0000 (00:45 +0200)
(distdir): Use $^ to refer to the files.
(distclean): New target.
* testsuite/Makefile.in: Likewise.
* tools/Makefile.in: Likewise.

Rev: src/nettle/tools/Makefile.in:1.2

tools/Makefile.in

index b5a17d901ef8225dcc059b1cb7c142b687a592ca..a5050b4ef032489e48668087b9fb9f56d5f557d7 100644 (file)
@@ -7,6 +7,8 @@ top_srcdir = @top_srcdir@
 
 include ../config.make
 
+INCLUDES = -I.. -I$(top_srcdir)
+
 TARGETS = sexp-conv nettle-lfib-stream
 
 all: $(TARGETS)
@@ -16,7 +18,7 @@ sexp_conv_SOURCES = sexp-conv.c input.c output.c parse.c \
 
 SOURCES = $(sexp_conv_SOURCES) nettle-lfib-stream.c
 
-DISTFILES = $(SOURCES) Makefile.in
+DISTFILES = $(SOURCES) Makefile.in getopt.h input.h misc.h output.h parse.h
 
 sexp-conv: $(sexp_conv_SOURCES:.c=.$(OBJEXT)) ../libnettle.a
        $(LINK) $^ $(LIBS) -L.. -lnettle -o $@
@@ -61,9 +63,12 @@ install: $(TARGETS)
        $(INSTALL_PROGRAM) $(TARGETS) $(bindir)
 
 distdir: $(DISTFILES)
-       cp $(DISTFILES) $(distdir)
+       cp $^ $(distdir)
 
 clean:
-       rm -f $(TARGETS) *.o *.d
+       -rm -f $(TARGETS) *.o *.d
+
+distclean: clean
+       -rm -f Makefile
 
 -include $(SOURCES:.c=.$(OBJEXT).d)