diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
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 |