-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (52 loc) · 1.97 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
54
55
56
57
58
59
60
# making a new version:
# change version number in this makefile
# change version number near top of program
# change version number in two places in /home/bcrowell/Documents/web/source/accelerando/index.source
# make accelerando.1
# make install
# make dist && make post
# touch /home/bcrowell/Documents/web/source/accelerando/index.source
# cd /home/bcrowell/Documents/web/source && make && cd -
# Update it on freshmeat.
VERSION = 1.0
TARBALL = accelerando.tar.gz
DIST_DIR = accelerando-$(VERSION)
# for slug, where install doesn't exist:
INSTALL = cp
INSTALL_DIR = mkdir -p
BIN = /usr/bin
# for platforms where install exists:
#INSTALL = install
#INSTALL_DIR = install -d
# BIN = /usr/local/bin
prefix = /usr
MANDIR = $(prefix)/share/man/man1
install:
$(INSTALL_DIR) /usr/share/apps/accelerando/sounds
$(INSTALL) metronome_click.wav /usr/share/apps/accelerando/sounds
$(INSTALL) metronome_click.mp3 /usr/share/apps/accelerando/sounds
$(INSTALL) accelerando $(BIN)
$(INSTALL_DIR) $(BIN)/Accelerando/Words
$(INSTALL) accelerando_helper $(BIN)
$(INSTALL) Accelerando/Words.pm $(BIN)/Accelerando
$(INSTALL) Accelerando/Words/*.pm $(BIN)/Accelerando/Words
chmod +rx $(BIN)/accelerando
chmod +rx $(BIN)/accelerando_helper
gzip -9 <accelerando.1 >accelerando.1.gz
- test -d $(DESTDIR)$(MANDIR) || mkdir -p $(DESTDIR)$(MANDIR)
$(INSTALL) accelerando.1.gz $(DESTDIR)$(MANDIR)
chmod +r $(DESTDIR)$(MANDIR)/accelerando.1.gz
rm -f accelerando.1.gz
dist: accelerando.1
git archive --format=tar --prefix=$(DIST_DIR)/ HEAD | gzip >$(TARBALL)
accelerando.1: accelerando
pod2man --section=1 --center="accelerando $(VERSION)" --release="$(VERSION)" \
--name=accelerando <accelerando >accelerando.1
post:
cp $(TARBALL) $(HOME)/Lightandmatter/accelerando
make_plain_text_manpage.pl >$(HOME)/Documents/web/source/accelerando/manpage.txt
uninstall:
rm -rf /usr/share/apps/accelerando
rm -rf $(BIN)/accelerando
rm -rf $(BIN)/accelerando_helper
rm -rf $(BIN)/Accelerando/Words