summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-10-18 08:09:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-10-18 08:09:24 +0000
commitfdc478bde8a2a0d76d33fcc89fa313c9f31bb79c (patch)
tree43c286d874a364d85a6cff36ae7f49e7232a5d7f /Makefile
downloadabuild-fdc478bde8a2a0d76d33fcc89fa313c9f31bb79c.tar.gz
abuild-fdc478bde8a2a0d76d33fcc89fa313c9f31bb79c.tar.bz2
abuild-fdc478bde8a2a0d76d33fcc89fa313c9f31bb79c.tar.xz
abuild-fdc478bde8a2a0d76d33fcc89fa313c9f31bb79c.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e066e35
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+
+PACKAGE=abuild
+VERSION=0.3
+DISTFILES=Makefile abuild abuild.conf
+
+prefix ?= /usr
+sysconfdir ?= /etc
+
+P=$(PACKAGE)-$(VERSION)
+
+help:
+ @echo "$(P) makefile"
+ @echo "usage: make install [ DESTDIR=<path> ]"
+ @echo " make dist"
+
+install:
+ mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir)
+ cp abuild $(DESTDIR)/$(prefix)/bin/
+ cp abuild.conf $(DESTDIR)/$(sysconfdir)/
+
+dist: $(P).tar.gz
+
+$(P).tar.gz: $(DISTFILES)
+ rm -rf $(P)
+ mkdir -p $(P)
+ cp $(DISTFILES) $(P)/
+ tar -czf $@ $(P)
+ rm -rf $(P)
+
+.PHONY: install dist