/usr/share/algotutor/Makefile is in algotutor 0.8.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | DESTDIR =
DOCDIR = $(DESTDIR)/usr/share/doc/algotutor/html
DSTDIR = $(DESTDIR)/usr/share/algotutor
PODSRC = algotutor gen_at_graph
DATADIR=$(DESTDIR)/usr/share/algotutor/data
BINDIR=$(DESTDIR)/usr/bin
# .deb and .rpm packagers please note: Please run
# make test DATADIR=/usr/share/algotutor/data BINDIR=/usr/bin
# or something the like after installing your algotutor package
# so as to make sure that most algorithms run correctly.
all:
clean:
rm -f *~ doc/*.1
install: dist
install -m 755 algotutor.sh $(BINDIR)/algotutor
rm -f $(DSTDIR)/algotutor.sh
mkdir -p $(DESTDIR)/usr/share/man/man1
for f in $(PODSRC); do \
gzip -c9 $(DSTDIR)/doc/$$f.1 > $(DESTDIR)/usr/share/man/man1/$$f.1.gz; \
done
dist:
mkdir -p $(BINDIR)
mkdir -p $(DOCDIR)
mkdir -p $(DATADIR)
mkdir -p $(DSTDIR)
rm -f red-black-tree.ps
cp -a $$(ls -d * | grep -v debian) $(DSTDIR)
for f in $(PODSRC) ; do pod2html $$f > $(DOCDIR)/$$f.shtml ; done ; rm -f *.tmp *.x~~
cp -a $$(ls -d $(DOCDIR)/*) $(DSTDIR)/doc
(cd $(DSTDIR); for f in $(PODSRC) ; do pod2man $$f > doc/$$f.1 ; done ; rm -f *.tmp *.x~~)
test_:
$(BINDIR)/algotutor -a rbt -i 75 -d red-black-tree.ps $(DATADIR)/countries.gr
$(BINDIR)/algotutor -a graham $(DATADIR)/pts1.gr
$(BINDIR)/algotutor -a dom $(DATADIR)/pts1.gr
$(BINDIR)/algotutor -a heap $(DATADIR)/countries.gr
$(BINDIR)/algotutor -a bst $(DATADIR)/countries.gr
$(BINDIR)/algotutor -a rbt $(DATADIR)/countries.gr
$(BINDIR)/algotutor -a sbs $(DATADIR)/trc.gr
$(BINDIR)/algotutor -a prim $(DATADIR)/randgrid.gr
$(BINDIR)/algotutor -a dijk $(DATADIR)/tt.gr
$(BINDIR)/algotutor -a flwa $(DATADIR)/lv.gr
$(BINDIR)/algotutor -a lcs AGCTATACGATGACT GTCAGTATAGTCATATG
$(BINDIR)/algotutor -a matc 32 A 35 B 24 C 30 D 36 E 25 F 40 G 34 H 35
|