From 6b1a54ea3634600af38fa96791fd255d08688dd6 Mon Sep 17 00:00:00 2001 From: yafox Date: Thu, 26 Nov 2020 00:10:20 +0000 Subject: [PATCH] add makefile and ignore pkg directory. --- .gitignore | 2 +- makefile | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 makefile diff --git a/.gitignore b/.gitignore index 6fe33ed..5fff1d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -pkg/** +pkg diff --git a/makefile b/makefile new file mode 100644 index 0000000..54bc262 --- /dev/null +++ b/makefile @@ -0,0 +1,15 @@ +PREFIX ?= /usr +DESTDIR ?= $(PREFIX)/bin +GITBASE ?= $(shell realpath $(shell git config --get remote.origin.url) | rev \ + | cut -d/ -f2- | rev) + +.PHONY: install uninstall lix-os-pkgs + +lix-os-pkgs: + git clone $(GITBASE)/versions-lix-os-pkgs pkg + +install: lix-os-pkgs + ln -sf $(VERSIONSROOT)/versions.sh $(DESTDIR)/versions + +uninstall: + rm $(DESTDIR)/versions