Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/binwalk/files: binwalk-0.3.0-makefile.patch
Date: Mon, 30 May 2011 23:38:04
Message-Id: 20110530233755.17F2720057@flycatcher.gentoo.org
1 radhermit 11/05/30 23:37:55
2
3 Added: binwalk-0.3.0-makefile.patch
4 Log:
5 Initial import.
6
7 (Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-misc/binwalk/files/binwalk-0.3.0-makefile.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch?rev=1.1&content-type=text/plain
14
15 Index: binwalk-0.3.0-makefile.patch
16 ===================================================================
17 --- binwalk-0.3.0/src/Makefile.orig
18 +++ binwalk-0.3.0/src/Makefile
19 @@ -7,7 +7,7 @@
20 OUTDIR=../bin
21
22 $(TARGET): md5.o mparse.o
23 - $(CC) $(TARGET).c -o $(TARGET) *.o -lmagic -lz $(CFLAGS)
24 + $(CC) $(TARGET).c -o $(TARGET) *.o -lmagic -lz $(CFLAGS) $(LDFLAGS)
25 cp $(TARGET) $(OUTDIR)
26
27 md5.o:
28 @@ -17,12 +17,13 @@
29 $(CC) -c mparse.c $(CFLAGS)
30
31 install:
32 - if ! test -d $(ETC); then mkdir $(ETC); fi
33 - cp $(MAGIC) $(ETC)/$(MAGIC)
34 - cp $(OUTDIR)/$(TARGET) $(BIN)/$(TARGET)
35 + if ! test -d $(DESTDIR)$(ETC); then mkdir -p $(DESTDIR)$(ETC); fi
36 + if ! test -d $(DESTDIR)$(BIN); then mkdir -p $(DESTDIR)$(BIN); fi
37 + cp $(MAGIC) $(DESTDIR)$(ETC)/$(MAGIC)
38 + cp $(OUTDIR)/$(TARGET) $(DESTDIR)$(BIN)/$(TARGET)
39
40 remove:
41 - rm -rf $(ETC) $(BIN)/$(TARGET)
42 + rm -rf $(DESTDIR)$(ETC) $(DESTDIR)$(BIN)/$(TARGET)
43
44 clean:
45 rm -f $(TARGET) *.o