Skip to content

Commit 5895675

Browse files
committed
Further improve Makefile
1 parent 9cf659f commit 5895675

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
.PHONY: doc html clean check regen
1+
.PHONY: run doc html clean check regen
22

33
GAP ?= gap
4-
GAP_ARGS = -q --quitonbreak --packagedirs $(abspath .)
4+
GAP_ARGS = -q --quitonbreak --packagedirs "$(abspath .);"
5+
6+
# run GAP and load the package
7+
run:
8+
$(GAP) --packagedirs "$(abspath .);" -c 'LoadPackage("AutoDoc");'
59

610
doc:
711
$(GAP) $(GAP_ARGS) makedoc.g -c 'QUIT;'
@@ -10,7 +14,7 @@ html:
1014
NOPDF=1 $(GAP) $(GAP_ARGS) makedoc.g -c 'QUIT;'
1115

1216
clean:
13-
cd doc && ./clean
17+
cd doc && rm -f *.{aux,bbl,blg,brf,css,dvi,html,idx,ilg,ind,js,lab,log,out,pdf,pnr,ps,six,tex,toc,txt,xml.bib} _*.xml title.xml
1418

1519
check:
1620
$(GAP) $(GAP_ARGS) tst/testall.g

doc/clean

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)