diff options
author | davidovski <david@davidovski.xyz> | 2022-02-13 23:22:33 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-13 23:22:33 +0000 |
commit | 9f529b0e85c7b38e97d8ebb0371f7a6859f882f4 (patch) | |
tree | 8de89a716bce066a5497b8263a00d9c007425e85 /Makefile | |
parent | f545930c0535293a37f5c1730d8b83264cf098b5 (diff) |
started rewrite with xisync
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 9 insertions, 17 deletions
@@ -1,21 +1,13 @@ -XI_BINARY=bin/xi SOURCE=src -xi: src/xi.py - mkdir -p bin - cd src && zip -r xi.zip * - echo '#!/usr/bin/env python' | cat - src/xi.zip > ${XI_BINARY} - rm src/xi.zip - chmod +x ${XI_BINARY} +PREFIX=/usr +CONFDIR=/etc -install: clean xi xipkg.conf default.conf - mkdir -p $(DESTDIR)/etc/xipkg.d/ - mkdir -p $(DESTDIR)/usr/bin - cp default.conf $(DESTDIR)/etc/xipkg.d/ - cp xipkg.conf $(DESTDIR)/etc/xipkg.conf - rm -f $(DESTDIR)/usr/bin/xi - cp bin/xi $(DESTDIR)/usr/bin/xipkg - ln -s /usr/bin/xipkg $(DESTDIR)/usr/bin/xi +install: install-config + install -m755 ${SOURCE}/xisync.sh ${DESTDIR}${PREFIX}/bin/xisync -clean: - rm -rf bin + +install-config: + mkdir -p $(DESTDIR)${CONFDIR}/xipkg.d/ + cp default.conf $(DESTDIR)${CONFDIR}/xipkg.d/ + cp xipkg.conf $(DESTDIR)${CONFDIR}/xipkg.conf |