-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
53 lines (40 loc) · 1.6 KB
/
Makefile
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
52
53
#
# Makefile for bibtex2web, which is an extension of bp.
#
# Set this to where you want bp installed. Choices include:
# 1) your standard perl library path, usually /usr/lib/perl.
# 2) your site-specific perl library path, often /usr/lib/perl/site_perl
# 3) a completely new place, such as /usr/local/lib/bp
# 4) leave them here in the source directory
# options 3 and 4 will require that the environment variable BPHOME be set
# to run any bp programs, but I prefer them.
# BPHOME = /usr/lib/perl
# BPHOME = /usr/local/lib/bp
# Set this to where you want the included perl scripts to be installed.
BINDEST = /usr/local/bin
# This is the prefix that will be used for the perl scripts.
BINPREF = bib
test:
(cd tests; make)
install: install.lib install.bin
install.lib:
test -d $(BPHOME) || mkdir $(BPHOME)
install -m 644 lib/*.pl $(BPHOME)
install.bin:
install -m 755 bin/conv.pl $(BINDEST)/$(BINPREF)conv
install -m 755 bin/count.pl $(BINDEST)/$(BINPREF)count
install -m 755 bin/grep.pl $(BINDEST)/$(BINPREF)grep
install -m 755 bin/rdup.pl $(BINDEST)/$(BINPREF)rdup
install -m 755 bin/sort.pl $(BINDEST)/$(BINPREF)sort
TAGS: tags
tags:
etags `find . -name '*.pl' | grep -v old`
tar: ../bibtex2web.tar.gz
../bibtex2web.tar.gz: . lib
cd ..; find bibtex2web -name '*~' -o -name '#*#' -o -name '.#*' -o -name TAGS -o -name CVS -o -name .hg > bibtex2web-exclude
cd ..; tar czf bibtex2web.tar.gz --exclude-from bibtex2web-exclude bibtex2web
rm ../bibtex2web-exclude
dist: ../bibtex2web.tar.gz
cp -pf $< ${HOME}/www/software/
cp -pf bibtex2web.html ${HOME}/www/software/
$(MAKE) -C ${HOME}/www/software/ linkdates