diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,14 +1,15 @@ | |||
1 | NAME = icite | 1 | NAME = icite |
2 | SHELL = bash | 2 | SHELL = bash |
3 | PWD = $(shell pwd) | 3 | PWD = $(shell pwd) |
4 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') | 4 | #VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') |
5 | VERS := $(shell typeoutfileinfo $(NAME).dtx | egrep -o '\+.*$$' | awk '{ print $$6 }' | sed -e 's/^v//') | ||
5 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) | 6 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) |
6 | UTREE = $(shell kpsewhich --var-value TEXMFHOME) | 7 | UTREE = $(shell kpsewhich --var-value TEXMFHOME) |
7 | CMP = lualatex-dev | 8 | CMP = lualatex-dev |
8 | 9 | ||
9 | exts := md bib ins dtx html | 10 | exts := md bib ins dtx html |
10 | texsamples := $(basename $(wildcard $(PWD)/samples/*.tex)) | 11 | texsamples := $(basename $(wildcard $(PWD)/samples/*.tex)) |
11 | findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") | 12 | findopts := $(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 | ||
71 | distclean: clean uninst | 72 | distclean: 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 | ||
104 | hal: clean | ||
105 | zip -Drq $(PWD)/$(NAME)-$(VERS).zip * | ||
106 | |||
103 | package: distclean all | 107 | package: 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)/ |