File: Makefile.in

package info (click to toggle)
base-passwd 3.1.10
  • links: PTS
  • area: main
  • in suites: potato
  • size: 200 kB
  • ctags: 115
  • sloc: ansic: 1,149; sh: 232; makefile: 76
file content (49 lines) | stat: -rw-r--r-- 1,020 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
srcdir		= @srcdir@
VPATH		= @srcdir@
top_srcdir	= @top_srcdir@

# Compilation tools
CC		= @CC@
CFLAGS		= @CFLAGS@ @DEFS@ -I.
LDFLAGS		= @LDFLAGS@

# Other tools
INSTALL		= @INSTALL@
INSTALL_DATA	= @INSTALL_DATA@

# Installation locations
sbindir		= @sbindir@
mandir		= @mandir@

# Files used
sources		= update-passwd.c
objects		= $(patsubst %.c, %.o, $(sources))
gen_autoheader	= config.h.in
gen_autoconf	= configure
gen_configure	= config.cache config.status config.log \
		  confdefhs.h config.h Makefile

all: update-passwd

install: all
	mkdir -p $(DESTDIR)$(sbindir)
	$(INSTALL) update-passwd $(DESTDIR)$(sbindir)/
	mkdir -p $(DESTDIR)$(mandir)/man8
	$(INSTALL_DATA) update-passwd.8 $(DESTDIR)$(mandir)/man8/

update-passwd: $(objects)
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	$(RM) update-passwd update-passwd.o core

mrproper realclean: clean
	$(RM) $(gen_configure)

cvslean: mrproper
	for i in $(gen_autoconf) $(gen_autoheader) ; do \
	    $(RM) $(srcdir)/$$i ; \
	done

.PHONY: all install clean mrproper cvsclean