File: Makefile.curses

package info (click to toggle)
bibcursed 2.0.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 112 kB
  • ctags: 20
  • sloc: ansic: 1,264; makefile: 53
file content (30 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (5)
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
# Generic UNIX makefile (has no ncurses library)
# version $id$

all: bibcursed

# Where to install
INSTDIR=/usr/local/bin
MANDIR=/usr/man/man1

bibcursed: bibcursed.c
	gcc -O -o bibcursed bibcursed.c -lcurses

install: bibcursed
	@if [ -d $(INSTDIR) ]; \
		then \
                echo "Installing binary in $(INSTDIR)";\
		cp bibtool $(INSTDIR);\
		chmod 755 $(INSTDIR)/bibtool;\
	else \
		echo "Sorry, $(INSTDIR) does not exist";\
	fi
	@if [ -d $(MANDIR) ]; \
		then \
		echo "Installing manual page in $(MANDIR)";\
		cp bibcursed.1 $(MANDIR);\
		chmod 644 $(MANDIR)/bibcursed.1;\
	else \
		echo "$(MANDIR) does not exist";\
	fi