Export to GitHub

dnsmap - issue #3

Patch: Use CFLAGS, add an install target to the Makefile


Posted on Feb 15, 2010 by Happy Rhino

Use CFLAGS, add an install target to the Makefile

Comment #1

Posted on Feb 15, 2010 by Happy Rhino

diff -up dnsmap-0.25/Makefile.orig dnsmap-0.25/Makefile --- dnsmap-0.25/Makefile.orig 2010-01-15 17:30:44.000000000 +0200 +++ dnsmap-0.25/Makefile 2010-02-15 12:17:46.554857932 +0200 @@ -1,9 +1,12 @@ CC=gcc CFLAGS=-I.

-DEPS = dnsmap.h

-%.o: %.c $(DEPS) - $(CC) -c -o $@ $< $(CFLAGS) +BINDIR=/usr/bin

dnsmap: dnsmap.c dnsmap.h - gcc -o dnsmap dnsmap.c -I. + $(CC) $(CFLAGS) -o dnsmap dnsmap.c + +install: dnsmap + mkdir -p $(DESTDIR)$(BINDIR) + install -m 0755 dnsmap $(DESTDIR)$(BINDIR) + install -m 0755 dnsmap-bulk.sh $(DESTDIR)$(BINDIR)/dnsmap-bulk +

Attachments

Comment #2

Posted on Feb 21, 2010 by Grumpy Elephant

Thanks for the patch Nikolay.

I applied it to dnsmap-0.25.tar.gz, dnsmap-0.25.tar.gz and the SVN trunk. The only thing I changed is the install dir: '/usr/local/bin', rather than '/usr/bin'. This is because (at least in the case of Ubuntu), dnsmap is not packaged by the distribution.

Status: New

Labels:
Type-Defect Priority-Medium