aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 01c10eb..6ed5806 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
1NAME = icite 1NAME = icite
2SHELL = bash 2SHELL = bash
3PWD = $(shell pwd) 3PWD = $(shell pwd)
4VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') 4#VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//')
5VERS := $(shell typeoutfileinfo $(NAME).dtx | egrep -o '\+.*$$' | awk '{ print $$6 }' | sed -e 's/^v//')
5LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) 6LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
6UTREE = $(shell kpsewhich --var-value TEXMFHOME) 7UTREE = $(shell kpsewhich --var-value TEXMFHOME)
7CMP = lualatex-dev 8CMP = lualatex-dev
8 9
9exts := md bib ins dtx html 10exts := md bib ins dtx html
10texsamples := $(basename $(wildcard $(PWD)/samples/*.tex)) 11texsamples := $(basename $(wildcard $(PWD)/samples/*.tex))
11findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") 12findopts := $(foreach ext,$(exts),-or -iname "LICENSE" -or -iname "*.$(ext)")
12 13
13 14
14# Look into this later 15# Look into this later
@@ -66,7 +67,7 @@ clean:
66 rm -rf * 67 rm -rf *
67 cp -p -r .backup/* . 68 cp -p -r .backup/* .
68 rm -rf .backup 69 rm -rf .backup
69 pandoc -s README.md -o about.html 70 pandoc README.md -o about.html
70 71
71distclean: clean uninst 72distclean: clean uninst
72 73
@@ -100,6 +101,9 @@ zip: all
100 zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{samples,README.md,$(NAME).{pdf,dtx,ins}} 101 zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{samples,README.md,$(NAME).{pdf,dtx,ins}}
101 rm $(NAME) 102 rm $(NAME)
102 103
104hal: clean
105 zip -Drq $(PWD)/$(NAME)-$(VERS).zip *
106
103package: distclean all 107package: distclean all
104 mkdir $(NAME)/ 108 mkdir $(NAME)/
105 cp Makefile README.md $(NAME).{ins,dtx,pdf} $(NAME)/ 109 cp Makefile README.md $(NAME).{ins,dtx,pdf} $(NAME)/