aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2013-10-24 22:04:24 -0700
committerLibravatarLibravatar William Ahern <william@server.local> 2013-10-24 22:04:24 -0700
commit59c4e8ec366ee30c841695ce0d13d23991e2b35b (patch)
treee87767068a90413128872b365423457d98e429ad
parentaf13d57c7804562e8b007c90003109410c3a692a (diff)
downloadluaossl-59c4e8ec366ee30c841695ce0d13d23991e2b35b.tar.gz
luaossl-59c4e8ec366ee30c841695ce0d13d23991e2b35b.tar.bz2
luaossl-59c4e8ec366ee30c841695ce0d13d23991e2b35b.zip
-n
add easier target names
-rw-r--r--GNUmakefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c6129ef..bf3a7a0 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -37,7 +37,7 @@ LDFLAGS_$(d) += -lssl -lcrypto
define BUILD_$(d)
-.INTERMEDIATE: liblua$(1)-openssl
+.INTERMEDIATE: liblua$(1)-openssl openssl$(1)
$$(d)/$(1)/openssl.so: $$(d)/$(1)/openssl.o
$$(CC) -o $$@ $$^ $$(SOFLAGS_$$(abspath $$(@D)/..)) $$(SOFLAGS) $$(LDFLAGS_$$(abspath $$(@D)/..)) $$(LDFLAGS)
@@ -47,7 +47,7 @@ $$(d)/$(1)/openssl.o: $$(d)/openssl.c $$(d)/compat52.h
$$(MKDIR) -p $$(@D)
$$(CC) $$(CFLAGS_$$(<D)) $$(CFLAGS) $$(call LUAPATH_$$(<D), $$(notdir $$(@D)), cppflags) $$(CPPFLAGS_$$(<D)) $$(CPPFLAGS) -c -o $$@ $$<
-liblua$(1)-openssl: $$(d)/$(1)/openssl.so
+liblua$(1)-openssl openssl$(1): $$(d)/$(1)/openssl.so
endef # BUILD_$(d)
@@ -84,7 +84,7 @@ MODS$(1)_$(d) = \
$$(DESTDIR)$(3)/openssl/hmac.lua \
$$(DESTDIR)$(3)/openssl/cipher.lua
-.INTERMEDIATE: liblua$(1)-openssl-install
+.INTERMEDIATE: liblua$(1)-openssl-install install$(1)
$$(DESTDIR)$(2)/_openssl.so: $$(d)/$(1)/openssl.so
$$(MKDIR) -p $$(@D)
@@ -110,9 +110,9 @@ $$(DESTDIR)$(3)/openssl/ssl/%.lua: $$(d)/openssl.ssl.%.lua
$$(MKDIR) -p $$(@D)
$$(CP) -p $$< $$@
-liblua$(1)-openssl-install: $$(MODS$(1)_$$(d))
+liblua$(1)-openssl-install install$(1): $$(MODS$(1)_$$(d))
-.PHONY: liblua$(1)-openssl-uninstall uninstall
+.PHONY: liblua$(1)-openssl-uninstall uninstall$(1) uninstall
liblua$(1)-openssl-uninstall:
$$(RM) -f $$(MODS$(1)_$(d))
@@ -120,6 +120,8 @@ liblua$(1)-openssl-uninstall:
-$$(RMDIR) $$(DESTDIR)$(3)/openssl/ssl
-$$(RMDIR) $$(DESTDIR)$(3)/openssl
+uninstall$(1): liblua$(1)-openssl-uninstall
+
endef # INSTALL_$(d)
$(eval $(call INSTALL_$(d),5.1,$$(lua51cpath),$$(lua51path)))