~ubuntu-branches/ubuntu/natty/base-passwd/natty

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Wichert Akkerman
  • Date: 2002-02-09 19:44:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020209194457-sutkq413kdo35jts
Tags: 3.4.1
Change directory for gnats to /var/lib/gnats on new installs. Do
not change it for existing systems. Closes: Bug#133121

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
srcdir          = @srcdir@
 
2
VPATH           = @srcdir@
 
3
top_srcdir      = @top_srcdir@
 
4
 
 
5
# Compilation tools
 
6
CC              = @CC@
 
7
CFLAGS          = @CFLAGS@ @DEFS@ -I.
 
8
LDFLAGS         = @LDFLAGS@
 
9
 
 
10
# Other tools
 
11
INSTALL         = @INSTALL@
 
12
INSTALL_DATA    = @INSTALL_DATA@
 
13
 
 
14
# Installation locations
 
15
sbindir         = @sbindir@
 
16
mandir          = @mandir@
 
17
 
 
18
# Files used
 
19
sources         = update-passwd.c
 
20
objects         = $(patsubst %.c, %.o, $(sources))
 
21
gen_autoheader  = config.h.in
 
22
gen_autoconf    = configure
 
23
gen_configure   = config.cache config.status config.log \
 
24
                  confdefhs.h config.h Makefile
 
25
 
 
26
all: update-passwd
 
27
 
 
28
install: all
 
29
        mkdir -p $(DESTDIR)$(sbindir)
 
30
        $(INSTALL) update-passwd $(DESTDIR)$(sbindir)/
 
31
        mkdir -p $(DESTDIR)$(mandir)/man8
 
32
        $(INSTALL_DATA) update-passwd.8 $(DESTDIR)$(mandir)/man8/
 
33
 
 
34
update-passwd: $(objects)
 
35
        $(CC) $(LDFLAGS) -o $@ $^
 
36
 
 
37
clean:
 
38
        $(RM) update-passwd update-passwd.o core
 
39
 
 
40
mrproper realclean: clean
 
41
        $(RM) $(gen_configure)
 
42
 
 
43
cvslean: mrproper
 
44
        for i in $(gen_autoconf) $(gen_autoheader) ; do \
 
45
            $(RM) $(srcdir)/$$i ; \
 
46
        done
 
47
 
 
48
.PHONY: all install clean mrproper cvsclean
 
49