File: Makefile.in

package info (click to toggle)
nwrite 1.9.2-20.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 272 kB
  • ctags: 192
  • sloc: ansic: 1,828; sh: 192; makefile: 132
file content (96 lines) | stat: -rw-r--r-- 2,766 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*-Makefile-*- for nwrite 1.9.2
# 
#  Copyright 1993 by Marco Nicosia <marco@csua.berkeley.edu>
#  Copyright 1994-95 by Aaron Smith <aaron@csua.berkeley.edu>
#  Copyright 1995-98 by Alan Coopersmith <alanc@csua.berkeley.edu>
#  All rights reserved.  (see README for license details)
#
# The makefile should be generated automatically with the correct
# options by the configure script - see the INSTALL file for details
#
###################################################################
# 20021103 <tmancill@debian.org> - slight tweaks
#	this thing is hopelessly outdated... :) 
###################################################################

################## Configuration Section##################
# Choose your compiler and other options
# Options:
# 	-DCLEAR_PROCS	- allow users to clear the list of names they
#			  are writing to from the ps output (if your
#			  OS supports it - many don't)

CC	= @CC@
CFLAGS 	= @DEFS@ @CFLAGS@ -DSYSTEM_NWRITERC=\"${SYSTEM_NWRITERC}\"
LDFLAGS	= @LDFLAGS@
LIBS	= @LIBS@

# Install program - choose one with BSD semantics (GNU is okay too, but
# SysV install won't work)
INSTALL = @INSTALL@
INSTALLFLAGS = @INSTALLFLAGS@
# Use this line if your ttys are world writable
#INSTALLFLAGS=-m 755
# Use this line if your ttys are only writable by group tty
#INSTALLFLAGS=-g tty -m 2755

# Where do you want the files installed?
prefix	= @prefix@
exec_prefix = @exec_prefix@
BIN	= @bindir@
MAN	= @mandir@
CONF	= @sysconfdir@

# Some systems like to gzip man pages, if yours is one, set MANGZ=-gz
MANGZ	= @MANGZ@

################## End of configuration ##################
# You shouldn't need to change anything after this point #

SYSTEM_NWRITERC=${CONF}/nwrite.rc

OBJECTS=nwrite.o

all: 	Makefile nwrite

nwrite: $(OBJECTS)
	$(CC) $(CFLAGS) -o nwrite $(OBJECTS) $(LDFLAGS)

install: Makefile installbin installman$(MANGZ) installrc

installbin: nwrite
	# this is unnecessary - there is no old file
	#-mv $(BIN)/nwrite $(BIN)/nwrite.old
	$(INSTALL) -c $(INSTALLFLAGS) nwrite $(BIN)/nwrite
	# this is also unnecessary, debhelper does this for us
	#strip $(BIN)/nwrite

installman: nwrite.1
	#-\rm $(MAN)/man1/nwrite.1 
	$(INSTALL) -c -m 644 nwrite.1 $(prefix)/$(MAN)/man1/nwrite.1

installman-gz: installman
	#-\rm $(MAN)/cat1/nwrite.1.gz
	#gzip $(MAN)/cat1/nwrite.1

installrc: nwrite.rc
	$(INSTALL) -c -m 644 nwrite.rc debian/nwrite/$(SYSTEM_NWRITERC)

Makefile: Makefile.in
	sh ./config.status

config.h: config.h.in
	sh ./config.status

config.h.in: configure.in acconfig.h
	autoheader

nwrite.1: nwrite.1.in
	#-\rm nwrite.1
	sed -e "s%SYSTEM_NWRITERC%$(SYSTEM_NWRITERC)%" nwrite.1.in > nwrite.1

clean:
	-\rm nwrite $(OBJECTS)

distclean: clean
	-\rm Makefile config.cache config.status config.log config.h nwrite.1