File: Makefile

package info (click to toggle)
setcd 1.4-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 72 kB
  • ctags: 19
  • sloc: ansic: 241; makefile: 46; sh: 1
file content (35 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (6)
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
# Makefile for setcd

# rely on default rules of GNU make

prefix=/usr/local
source=$(HOME)/cdrom
revision=1.4

CC=gcc
CFLAGS=-g -Wall
INSTALL=install

default: setcd cdrom-standard.ps

install: setcd cdrom-standard.ps
	$(INSTALL) -s -m 0755 setcd $(prefix)/bin/setcd
	$(INSTALL) -m 0644 setcd.1 $(prefix)/man/man1
	$(INSTALL) -m 0644 cdrom-standard.ps $(prefix)/doc/setcd

cdrom-standard.ps: /usr/src/linux/Documentation/cdrom/cdrom-standard.tex
	ln -sf /usr/src/linux/Documentation/cdrom/cdrom-standard.tex .
	latex cdrom-standard.tex
	latex cdrom-standard.tex
	dvips cdrom-standard -r0 -o
	
distclean:
	rm -f cdrom-standard.{tex,log,ps,aux,dvi}
	rm -f setcd

sources:
	co -p$(revision) $(source)/setcd.c > setcd.c
	co -p$(revision) $(source)/setcd.1 > setcd.1
	rcs2log $(source)/setcd.c | \
		sed 's/davidav.our.home/ElseWare.cistron.nl/' > ChangeLog