blob: 12205d1a7c6ba6227df782bdf00309c8b61c2d54 (
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
36
37
38
39
40
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
OBJ =\
makeenv.o
HDR =
all: makeenv
$(OBJ): $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
makeenv: $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
install: makeenv
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man5/"
cp -- makeenv "$(DESTDIR)$(PREFIX)/bin/"
cp -- makeenv.1 "$(DESTDIR)$(MANPREFIX)/man1/"
cp -- makeenv.5 "$(DESTDIR)$(MANPREFIX)/man5/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/makeenv"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/makeenv.1"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man5/makeenv.5"
clean:
-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
-rm -f -- makeenv
.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: all install uninstall clean
|