Makefile
Intended to replace easyInstaller on Linux. Helps with Arch Linux AUR package
This commit is contained in:
parent
a3548beac3
commit
acc998ed0d
1 changed files with 37 additions and 0 deletions
37
Makefile
Normal file
37
Makefile
Normal file
|
@ -0,0 +1,37 @@
|
|||
PYTHON2_CMD ?= /usr/bin/python
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
LIBINSTALLDIR ?= /lib
|
||||
XDGCONFDIR ?= /etc/xdg
|
||||
|
||||
PESTERCHUMBINDIR = ${DESTDIR}${PREFIX}/bin
|
||||
PESTERCHUMLIBDIR = $(DESTDIR)$(PREFIX)$(LIBINSTALLDIR)/pesterchum
|
||||
|
||||
all:
|
||||
@echo "Ready to install..."
|
||||
|
||||
make-install-dirs:
|
||||
mkdir -p ${PESTERCHUMBINDIR}
|
||||
mkdir -p ${PESTERCHUMLIBDIR}
|
||||
mkdir -p ${PESTERCHUMLIBDIR}/libs
|
||||
mkdir -p ${PESTERCHUMLIBDIR}/oyoyo
|
||||
mkdir -p ${PESTERCHUMLIBDIR}/quirks
|
||||
mkdir -p ${PESTERCHUMLIBDIR}/smilies
|
||||
mkdir -p ${PESTERCHUMLIBDIR}/themes
|
||||
|
||||
uninstall:
|
||||
rm -f ${PESTERCHUMBINDIR}/pesterchum
|
||||
rm -rf ${PESTERCHUMLIBDIR}
|
||||
|
||||
install: make-install-dirs
|
||||
cp *.py ${PESTERCHUMLIBDIR}
|
||||
cp libs/*.py ${PESTERCHUMLIBDIR}/libs
|
||||
cp oyoyo/*.py ${PESTERCHUMLIBDIR}/oyoyo
|
||||
cp quirks/*.py ${PESTERCHUMLIBDIR}/quirks
|
||||
cp smilies/* ${PESTERCHUMLIBDIR}/smilies
|
||||
cp -r themes/* ${PESTERCHUMLIBDIR}/themes
|
||||
@echo '#!/bin/sh' > ${PESTERCHUMBINDIR}/pesterchum
|
||||
@echo 'cd ${PESTERCHUMCONFDIR}' >> ${PESTERCHUMBINDIR}/pesterchum
|
||||
@echo 'python2 pesterchum.py' > ${PESTERCHUMBINDIR}/pesterchum
|
||||
chmod +x ${PESTERCHUMBINDIR}/pesterchum
|
||||
@echo "Done installing"
|
Loading…
Reference in a new issue