summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2017-06-17 14:43:02 +0100
committerRichard Ipsum <richardipsum@fastmail.co.uk>2017-06-17 14:43:02 +0100
commitc4bcad88ed718a3041899d0719e7b9e571abdfaf (patch)
treecde297f1bae1df51a254df4c2020156eedb775b9
parente2d013d927f4ae76b62d66ae095b48c62f877ac6 (diff)
downloadlua-scrypt-git-c4bcad88ed718a3041899d0719e7b9e571abdfaf.tar.gz
Declare PHONY targets
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 543cda3..ff8e1cc 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,12 @@ SCRYPT_LIBS := -lscrypt
override CFLAGS := $(CFLAGS) -O2 -Wall -fPIC
+.PHONY: all
all: lua-5.1-try lua-5.2-try
include findlua.mk
+.PHONY: clean
clean:
$(RM) scrypt-5.1.so scrypt-5.2.so scrypt.so
$(RM) luascrypt.o
@@ -23,9 +25,11 @@ clean:
.PHONY: install
install: lua-5.1-try-install lua-5.2-try-install
+.PHONY: lua-5.1
lua-5.1: scrypt-5.1.so
ln -s -f scrypt-5.1.so scrypt.so
+.PHONY: lua-5.1-install
lua-5.1-install: INST_LIBDIR ?= $(DESTDIR)$(LUA51_CMOD_INST)
lua-5.1-install: lua-5.1
$(INSTALL) -d $(INST_LIBDIR)
@@ -34,9 +38,11 @@ lua-5.1-install: lua-5.1
scrypt-5.1.so: luascrypt.c base64.c
$(CC) $(CFLAGS) $(LUA51_INC) -shared -o $@ $^ $(LUA51_LIB) $(SCRYPT_LIBS)
+.PHONY: lua-5.2
lua-5.2: scrypt-5.2.so
ln -s -f scrypt-5.2.so scrypt.so
+.PHONY: lua-5.2-install
lua-5.2-install: INST_LIBDIR ?= $(DESTDIR)$(LUA52_CMOD_INST)
lua-5.2-install: lua-5.2
$(INSTALL) -d $(INST_LIBDIR)
@@ -45,6 +51,6 @@ lua-5.2-install: lua-5.2
scrypt-5.2.so: luascrypt.c base64.c
$(CC) $(CFLAGS) $(LUA52_INC) -shared -o $@ $^ $(LUA52_LIB) $(SCRYPT_LIBS)
-
+.PHONY: doc
doc:
@ldoc .