-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (18 loc) · 848 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
ff2avs = -lm
install:
mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
cp -f *.1 "$(DESTDIR)$(MANPREFIX)/man1"
for m in *.1; do chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/$$m"; done
mkdir -p "$(DESTDIR)$(MANPREFIX)/man7"
cp -f *.7 "$(DESTDIR)$(MANPREFIX)/man7"
for m in *.7; do chmod 644 "$(DESTDIR)$(MANPREFIX)/man7/$$m"; done
@echo -e '\nThis Makefile only installs the man pages.'
@echo -e '\nTo compile the programs run:\n $$ for FILE in ff-*.c ff2*.c *2ff.c; do sh $$FILE; done'
@echo -e "\nThis will install the programs under the user directory ~/bin/ by default."
@echo -e "Some programs may depend on additional libraries to compile."
echo "ninstall:
for m in *.1; do rm -f "$(DESTDIR)$(MANPREFIX)/man1/$$m"; done
for m in *.7; do rm -f "$(DESTDIR)$(MANPREFIX)/man7/$$m"; done