Add a build script for Hany's Dos2Unix tool
[msysgit.git] / src / hd2u / patches / 0001-Allow-the-target-name-to-differ-from-the-source-name.patch
blobe6e38dc55cfa018c9965b0d2af1d478569325bf2
1 From 18840c3a329b3c2e2ef9ef0b59daf89767e7e7cd Mon Sep 17 00:00:00 2001
2 From: Sebastian Schuberth <sschuberth@gmail.com>
3 Date: Tue, 29 Dec 2009 15:19:05 +0100
4 Subject: [PATCH] Allow the target name to differ from the source name
6 Use hd2u as the target name to not overwrite MinGW's dos2unix.
8 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
9 ---
10 Makefile.in | 12 ++++++------
11 1 files changed, 6 insertions(+), 6 deletions(-)
13 diff --git a/Makefile.in b/Makefile.in
14 index 2a67b3c..8885d37 100644
15 --- a/Makefile.in
16 +++ b/Makefile.in
17 @@ -18,7 +18,7 @@ PACKAGE_VERSION=@PACKAGE_VERSION@
19 CC = @CC@
20 CFLAGS = @CFLAGS@ -Wall -pedantic
21 -TARGET = dos2unix
22 +TARGET = hd2u
23 SCRIPTS = \
24 configure \
25 install-sh \
26 @@ -41,8 +41,8 @@ LIBS= @LIBS@
28 all: $(TARGET)
30 -$(TARGET): $(TARGET).c config.h
31 - $(CC) $(CFLAGS) -o $@ $(@:%=%.c) $(LIBS)
32 +$(TARGET): dos2unix.c config.h
33 + $(CC) $(CFLAGS) -o $@ dos2unix.c $(LIBS)
36 all-optimized: $(TARGET)-optimized
37 @@ -51,10 +51,10 @@ $(TARGET)-optimized: $(TARGET).pa benchmark1 $(TARGET).bp benchmark2
38 @echo "You should check BENCHMARKING results: second one should be better."
40 $(TARGET).pa:
41 - $(CC) $(CFLAGS) $(CFLAGS_PROFILE) -fprofile-arcs -o $(TARGET) $(TARGET).c $(LIBS)
42 + $(CC) $(CFLAGS) $(CFLAGS_PROFILE) -fprofile-arcs -o $(TARGET) dos2unix.c $(LIBS)
44 $(TARGET).bp:
45 - $(CC) $(CFLAGS) $(CFLAGS_PROFILE) -fbranch-probabilities -o $(TARGET) $(TARGET).c $(LIBS)
46 + $(CC) $(CFLAGS) $(CFLAGS_PROFILE) -fbranch-probabilities -o $(TARGET) dos2unix.c $(LIBS)
49 test: $(TARGET)
50 @@ -104,7 +104,7 @@ install:
52 tarball:
53 $(INSTALL) -d -m 755 ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
54 - $(INSTALL) -m 644 $(TARGET).c ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
55 + $(INSTALL) -m 644 dos2unix.c ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
56 $(INSTALL) -m 755 $(SCRIPTS) ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
57 $(INSTALL) -m 644 $(DOC) ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
58 $(INSTALL) -m 644 Makefile.in configure.in config.h.in ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)
59 --
60 1.6.5.rc2.13.g1be2