From 493495a1fbe55dfae1a988a115c2a3ed9b6eaa4c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Sep 2013 07:36:48 +0200 Subject: add another example rc file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2d9c015..555021f 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ SSH = ssh BASH_SHEBANG = /usr/bin/env bash +EXAMPLES = lower-left-ponysay allow-uppercase + .PHONY: all @@ -60,13 +62,20 @@ got-cmd.install: got-cmd install: install-cmd install-doc .PHONY: install-cmd -install-cmd: got.install got-cmd.install +install-cmd: install-core + +.PHONY: install-core install-examples +install-core: got.install got-cmd.install install -Dm755 -- "got.install" "$(DESTDIR)$(PREFIX)$(SBIN)/got" install -Dm755 -- "got-cmd.install" "$(DESTDIR)$(PREFIX)$(BIN)/got-cmd" - install -Dm644 -- "gotrc" "$(DESTDIR)$(SYSCONF)/gotrc.examples/lower-left-ponysay" install -d -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)" install -m644 -- COPYING LICENSE "$(DESTDIR)$(LICENSES)/$(PKGNAME)" +.PHONY: install-examples +install-examples: $(foreach EXAMPLE, $(EXAMPLES), gotrc-examples/$(EXAMPLE)) + install -d -- "$(DESTDIR)$(SYSCONF)/gotrc.examples" + install -m644 -- $^ "$(DESTDIR)$(SYSCONF)/gotrc.examples" + .PHONY: install-doc install-doc: install-info -- cgit v1.2.3-70-g09d2