pixiewps: cleanup

This commit is contained in:
blshkv 2018-06-04 23:31:14 +08:00
parent d0ef581248
commit a32f23ee25
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -1,26 +0,0 @@
--- Makefile.orig 2016-01-05 06:08:02.000000000 +0800
+++ Makefile 2016-05-25 13:41:02.008984971 +0800
@@ -3,9 +3,8 @@
TARGET = pixiewps
CRYPTO = crypto/sha256.c crypto/md.c crypto/md_wrap.c
SOURCE = $(TARGET).c random_r.c $(CRYPTO)
-PREFIX = $(DESTDIR)/usr
+PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
-LOCDIR = $(PREFIX)/local/bin
all:
$(CC) $(CCFLAGS) -o $(TARGET) $(SOURCE)
@@ -14,10 +13,8 @@
$(CC) $(CCFLAGS) -DDEBUG -o $(TARGET) $(SOURCE)
install:
- rm -f $(BINDIR)/$(TARGET)
- rm -f $(LOCDIR)/$(TARGET)
- install -d $(DESTDIR)$(LOCDIR)
- install -m 755 $(TARGET) $(DESTDIR)$(LOCDIR)
+ install -d $(DESTDIR)$(BINDIR)
+ install -m 755 $(TARGET) $(DESTDIR)$(BINDIR)
uninstall:
rm $(BINDIR)/$(TARGET)