commit 5b05b614b7cca13d257ad92463463355a7f46671 parent ea1c742e8afd129dc3e8716adfde285ff94975cb Author: Christos Margiolis <christos@margiolis.net> Date: Tue, 26 Apr 2022 19:47:54 +0300 fixed makefile Diffstat:
M | Makefile | | | 75 | +++++++++++++++++++++++++++++++++++++++------------------------------------ |
M | doccomp | | | 3 | ++- |
D | newsboat_bookmark | | | 3 | --- |
3 files changed, 41 insertions(+), 40 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,53 +1,56 @@ .POSIX: -SCRIPTS = ausplit \ - autocomp \ - backup \ - batnfy \ - doccomp \ - docprev \ - extr \ - fontupd \ - irssi_torconf \ - mntdroid \ - namefmt \ - newsboat_bookmark \ - passget \ - push \ - rssread \ - screencast \ - se \ - setscreens \ - sysact \ - tag \ - unix \ - upd \ - vdq \ - vds \ - vmstart \ - vmstop \ - walset \ - wttr +TARGS = ausplit \ + autocomp \ + backup \ + batnfy \ + doccomp \ + docprev \ + extr \ + fontupd \ + irssi_torconf \ + mntdroid \ + namefmt \ + passget \ + push \ + rssread \ + screencast \ + se \ + setscreens \ + sysact \ + tag \ + unix \ + upd \ + vdq \ + vds \ + vmstart \ + vmstop \ + walset \ + wttr PREFIX = /usr/local -all: ${SCRIPTS} - chmod +x ${SCRIPTS} +all: ${TARGS} + chmod +x ${TARGS} dist: mkdir -p ${DIST} - cp -R ${SCRIPTS} ${DIST} + cp -R ${TARGS} ${DIST} tar -cf ${DIST}.tar ${DIST} gzip ${DIST}.tar rm -rf ${DIST} install: all mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f ${SCRIPTS} ${DESTDIR}${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/${SCRIPTS} - -# FIXME: FOR LOOP -#uninstall: + cp -f ${TARGS} ${DESTDIR}${PREFIX}/bin + for targ in ${TARGS} ; do \ + chmod 755 ${DESTDIR}${PREFIX}/bin/$${targ} ; \ + done + +uninstall: + for targ in ${TARGS} ; do \ + rm -f ${DESTDIR}${PREFIX}/bin/$${targ} ; \ + done clean: rm -f ${DIST}.tar.gz diff --git a/doccomp b/doccomp @@ -22,5 +22,6 @@ cd "${dir}" || exit 1 case "${ext}" in md) pandoc ${file} --pdf-engine=xelatex -V mainfont=Arial -o "${base}.pdf" ;; - tex) pdflatex ${file} && rm -f *.aux *.log *.out *.bcf *.run.xml *.bbl *.blg *-blx.bib ;; + tex) pdflatex ${file} ;; + #rm -f *.aux *.log *.out *.bcf *.run.xml *.bbl *.blg *-blx.bib ;; esac diff --git a/newsboat_bookmark b/newsboat_bookmark @@ -1,3 +0,0 @@ -#!/bin/sh - -printf "%s\t%s\n" "$1" "$2" | expand -t8 >> "${HOME}/shit/playlist"