Merge pull request #123 from rofl0r/install

Makefile.in: fix behaviour of make install
This commit is contained in:
soxrok2212 2017-02-16 17:05:01 -05:00 committed by GitHub
commit ffd7daeaed
1 changed files with 6 additions and 10 deletions

View File

@ -99,10 +99,10 @@ cracker.o: globule.o init.o pins.o iface.o exchange.o session.o 80211.o
globule.o: globule.o:
$(CC) $(CFLAGS) globule.c -c $(CC) $(CFLAGS) globule.c -c
install: cleanbin install: all
if [ ! -d $(CONFDIR) ]; then mkdir -p $(CONFDIR); fi install -d $(DESTDIR)$(CONFDIR)
if [ -e wash ]; then cp wash @bindir@/wash; fi install -Dm 755 wash $(DESTDIR)@bindir@/wash
if [ -e reaver ]; then cp reaver @bindir@/reaver; fi install -Dm 755 reaver $(DESTDIR)@bindir@/reaver
clean: clean:
rm -f *~ *.o reaver wash rm -f *~ *.o reaver wash
@ -114,10 +114,6 @@ clean:
(cd lwe && $(MAKE) realclean) (cd lwe && $(MAKE) realclean)
rm -f Makefile config.h rm -f Makefile config.h
cleanbin: distclean: clean
rm -f @bindir@/reaver @bindir@/wash @bindir@/walsh
distclean: cleanbin clean .PHONY: libiw clean distclean install
rm -rf $(CONFDIR)
.PHONY: libiw clean cleanbin distclean install