From fdc478bde8a2a0d76d33fcc89fa313c9f31bb79c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 18 Oct 2008 08:09:24 +0000 Subject: initial commit --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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= ]" + @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 -- cgit v1.2.3-70-g09d2