Added removal of pixiewps from old installation directory

The installation directory was
[changed](571f5a55ba)
for OpenWRT compatibility.
This commit is contained in:
wiire 2015-06-06 22:53:43 +02:00
parent 0cf0e7ce82
commit 0679bbab7b

View File

@ -4,11 +4,13 @@ LDFLAGS = -lcrypto -I../include
TARGET = pixiewps
PREFIX = $(DESTDIR)/usr
BINDIR = $(PREFIX)/bin
OLDDIR = $(PREFIX)/local/bin
all:
$(CC) $(CCFLAGS) -o $(TARGET) $(TARGET).c $(LDFLAGS)
install:
rm -f $(OLDDIR)/$(TARGET)
install -D $(TARGET) $(BINDIR)/$(TARGET)
install -m 755 $(TARGET) $(BINDIR)