summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-20 14:54:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-20 14:54:20 +0000
commit58cb2bc3fbdc615045ba3698fa90123092042316 (patch)
tree02944de725da23c390cd533caedd983b91a23daa /Makefile
parent66fdef1a359563adbe5221b18baf54d167daea56 (diff)
downloadalpine-iso-58cb2bc3fbdc615045ba3698fa90123092042316.tar.bz2
alpine-iso-58cb2bc3fbdc615045ba3698fa90123092042316.tar.xz
Makefile: compile and install abuild-tar
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index af8574e..f1e33a2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,11 @@ sysconfdir ?= /etc
datadir ?= $(prefix)/share/$(PACKAGE)
apkcache ?= ~/.cache/apks
-USR_BIN_FILES := abuild devbuild mkalpine buildrepo
+SCRIPTS := abuild devbuild mkalpine buildrepo
+USR_BIN_FILES := $(SCRIPTS) abuild-tar
SAMPLES := sample.APKBUILD sample.initd sample.confd \
sample.pre-install sample.post-install
-SCRIPTS := $(USR_BIN_FILES)
SCRIPT_SOURCES := $(addsuffix .in,$(SCRIPTS))
DISTFILES=$(SCRIPT_SOURCES) $(SAMPLES) Makefile abuild.conf
@@ -33,6 +33,8 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
-e 's:@datadir@:$(datadir):g' \
-e 's:@apkcache@:$(apkcache):g'
+SSL_LIBS := $(shell pkg-config --libs openssl)
+
.SUFFIXES: .sh.in .in
.sh.in.sh:
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
@@ -40,12 +42,15 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
.in:
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
+P=$(PACKAGE)-$(VERSION)
+all: $(USR_BIN_FILES)
+clean:
+ @rm -f $(USR_BIN_FILES)
-P=$(PACKAGE)-$(VERSION)
-
-all: $(SCRIPTS)
+abuild-tar: abuild-tar.c
+ $(CC) -o $@ $(SSL_LIBS) $^
help:
@echo "$(P) makefile"