add makefile and ignore pkg directory.

This commit is contained in:
yafox 2020-11-26 00:10:20 +00:00
parent 1ca2eb84f7
commit 6b1a54ea36
No known key found for this signature in database
GPG Key ID: B501C30B37F4806C
2 changed files with 16 additions and 1 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
pkg/**
pkg

15
makefile Normal file
View File

@ -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