File: Makefile

package info (click to toggle)
rexima 1.4-8
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 172 kB
  • ctags: 82
  • sloc: ansic: 845; makefile: 50; sh: 23
file content (45 lines) | stat: -rw-r--r-- 900 bytes parent folder | download | duplicates (2)
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
# Makefile - makefile for rexima

CC=gcc
CFLAGS=-O -Wall

# Set BINDIR to directory for binary,
# MANDIR to directory for man page.
# Usually it will be simpler to just set PREFIX.
#
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man/man1

# You shouldn't need to edit below this line.
#--------------------------------------------------------

all: rexima

rexima: rexima.o
	$(CC) $(CFLAGS) -o rexima rexima.o -lncurses

installdirs:
	/bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)

install: rexima installdirs
	install -m 755 rexima $(BINDIR)
	install -m 644 rexima.1 $(MANDIR)

uninstall:
	$(RM) $(BINDIR)/rexima $(MANDIR)/rexima.1

clean:
	$(RM) *.o *~ rexima


# stuff to make distribution tgz

VERS=1.4

tgz: ../rexima-$(VERS).tar.gz
  
../rexima-$(VERS).tar.gz: clean
	@cd ..;ln -s rexima rexima-$(VERS)
	cd ..;tar zchvf rexima-$(VERS).tar.gz rexima-$(VERS)
	@cd ..;$(RM) rexima-$(VERS)