-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
27 lines (22 loc) · 897 Bytes
/
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
BINDIR=/usr/bin
MANDIR=/usr/share/man
ZCOMPDIR=/usr/local/share/zsh/site-functions
VERSION=1.7
all:
@echo make install to install the software
@echo make uninstall to remove the software
install:
if test ! -d $(DESTDIR)/$(BINDIR) ; then mkdir -p $(DESTDIR)/$(BINDIR) ; fi
install -m 755 fnt $(DESTDIR)/$(BINDIR)/
if test ! -d $(DESTDIR)/$(MANDIR)/man1 ; then mkdir -p $(DESTDIR)/$(MANDIR)/man1; fi
install -c -m 644 fnt.1 $(DESTDIR)/$(MANDIR)/man1/ ; gzip -9 $(DESTDIR)/$(MANDIR)/man1/fnt.1
if test ! -d $(DESTDIR)/$(ZCOMPDIR) ; then mkdir -p $(DESTDIR)/$(ZCOMPDIR) ; fi
install -m 755 completions/_fnt $(DESTDIR)/$(ZCOMPDIR)/
uninstall:
rm -f $(DESTDIR)/$(BINDIR)/fnt
rm -f $(DESTDIR)/$(MANDIR)/man1/fnt.1.gz
rm -f $(DESTDIR)/$(ZCOMPDIR)/_fnt
clean:
@echo nothing to clean
release:
cd .. ; tar cf fnt-$(VERSION).tar --exclude-vcs fnt ; xz -9f fnt-$(VERSION).tar