blob: a7084755b6aff19a37a9fcaa50458156a77eba62 (
plain) (
blame)
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
|
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
CONFIGFILE = config.mk
include $(CONFIGFILE)
all: autopasswd
.o:
$(CC) -o $@ $< $(LDFLAGS)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
install: autopasswd
mkdir -p -- "$(DESTDIR)$(BINDIR)"
mkdir -p -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
cp -- autopasswd "$(DESTDIR)$(BINDIR)/$(COMMAND)"
cp -- COPYING LICENSE "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/"
uninstall:
-rm -f -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
-rm -f -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING"
-rm -f -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE"
-rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
clean:
-rm -f -- *.o *.su autopasswd
.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: all install uninstall clean
|