Commit c0996d36 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix getopt call (args reversed).

Add install target to stick into the sbin directory.
parent c17d17da
...@@ -3,7 +3,7 @@ TESTBED_SRCDIR = @top_srcdir@ ...@@ -3,7 +3,7 @@ TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../.. OBJDIR = ../..
SUBDIR = event/example SUBDIR = event/example
PROGRAMS = tbrecv tbsend PROGRAMS = tbrecv tbsend eventdebug.pl
include $(OBJDIR)/Makeconf include $(OBJDIR)/Makeconf
...@@ -28,7 +28,7 @@ tbsend: tbsend.o ...@@ -28,7 +28,7 @@ tbsend: tbsend.o
$(PROGRAMS): ../lib/libevent.a ../lib/event.h $(PROGRAMS): ../lib/libevent.a ../lib/event.h
install: install: $(addprefix $(INSTALL_SBINDIR)/, eventdebug.pl)
clean: clean:
/bin/rm -f *.o $(PROGRAMS) /bin/rm -f *.o $(PROGRAMS)
...@@ -20,7 +20,7 @@ sub usage { ...@@ -20,7 +20,7 @@ sub usage {
} }
my %opt = (); my %opt = ();
getopt(\%opt,"s:p:h"); getopt("s:p:h", \%opt);
if ($opt{h}) { exit &usage; } if ($opt{h}) { exit &usage; }
if (@ARGV) { exit &usage; } if (@ARGV) { exit &usage; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment