Clean up build

This commit is contained in:
Neale Pickett 2014-03-20 11:10:22 -06:00
parent 6d3d01630b
commit d0994e4ed8
1 changed files with 9 additions and 6 deletions

View File

@ -1,13 +1,16 @@
CFLAGS = -Wall -Werror CFLAGS = -Wall -Werror
TARGETS = pmerge puniq p4split pcat TARGETS += pmerge
TARGETS += hd pyesc printfesc xor unhex TARGETS += puniq
TARGETS += p4split
TARGETS += hd
TARGETS += pyesc
TARGETS += printfesc
TARGETS += xor
TARGETS += unhex
all: $(TARGETS) all: $(TARGETS)
%: %.go nstall: $(TARGETS)
go build $<
install: $(TARGETS)
install -d $(DESTDIR)$(PREFIX) install -d $(DESTDIR)$(PREFIX)
install $(TARGETS) $(DESTDIR)$(PREFIX)/bin install $(TARGETS) $(DESTDIR)$(PREFIX)/bin