File: Makefile.in

package info (click to toggle)
daemonize 1.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 340 kB
  • sloc: ansic: 662; sh: 152; makefile: 44
file content (58 lines) | stat: -rw-r--r-- 1,602 bytes parent folder | download
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
# Makefile.in for daemonize.
#
# This source code is released under a BSD-style license. See the LICENSE
# file for details.
# ---------------------------------------------------------------------------

srcdir		= @srcdir@
VPATH		= @srcdir@
INSTALL_PREFIX	= @prefix@
INSTALL		= @INSTALL@
INSTALL_SBIN	= $(INSTALL_PREFIX)/sbin
INSTALL_MAN    = $(INSTALL_PREFIX)/share/man
MISSING_SOURCES	= @LOCAL_MISSING_SOURCES@
MISSING_OBJECTS = $(MISSING_SOURCES:.c=.o)
CC		= @CC@
CFLAGS		= @CFLAGS@
LDFLAGS		= @LDFLAGS@

.PHONY: all psman install clean distclean

.c.o:
	$(CC) $(CFLAGS) -c $< -I. -I$(srcdir)

all: daemonize 

daemonize: daemonize.o getopt.o $(MISSING_OBJECTS)
	$(CC) $(CFLAGS) -o $@ $^

testdaemon: testdaemon.o
	$(CC) $(CFLAGS) -o $@ $^
 
psman: daemonize.ps

daemonize.ps: daemonize.1
	groff -man daemonize.1 >pstmp
	ps2ps pstmp daemonize.ps
	rm pstmp

daemonize.html: daemonize.1
	groff -man -Thtml daemonize.1 >daemonize.html

install:
	mkdir -p $(DESTDIR)$(INSTALL_SBIN)
	$(INSTALL) -m 0755 daemonize $(DESTDIR)$(INSTALL_SBIN)
	mkdir -p $(DESTDIR)$(INSTALL_MAN)/man1
	$(INSTALL) -m 0644 $(srcdir)/daemonize.1 $(DESTDIR)$(INSTALL_MAN)/man1

clean:
	rm -rf *.o daemonize testdaemon *.ps

distclean:	clean
	rm -rf config.status config.log config.cache config.h Makefile autom?te.cache

# Copy stuff to the gh-pages directory. I doubt you want to use this target,
# unless you're maintaining the web site (i.e., unless you're me).
gh: daemonize.html CHANGELOG.md ../gh-pages/changelog-header
	cp daemonize.html ../gh-pages
	cat ../gh-pages/changelog-header CHANGELOG.md >../gh-pages/CHANGELOG.md