Makefile - noice - small file browser (mirror / fork from 2f30.org) | |
git clone git://git.codemadness.org/noice | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
Makefile (1157B) | |
--- | |
1 VERSION = 0.8 | |
2 PREFIX = /usr/local | |
3 MANPREFIX = $(PREFIX)/man | |
4 | |
5 NOICELDLIBS = -lcurses | |
6 NOPENLDLIBS = | |
7 NOICEOBJ = dprintf.o noice.o spawn.o strlcat.o strlcpy.o strverscmp.o | |
8 NOPENOBJ = nopen.o spawn.o | |
9 BIN = noice nopen | |
10 MAN = noice.1 nopen.1 | |
11 | |
12 all: $(BIN) | |
13 | |
14 noice: $(NOICEOBJ) | |
15 $(CC) $(CFLAGS) -o $@ $(NOICEOBJ) $(LDFLAGS) $(NOICELDLIBS) | |
16 | |
17 nopen: $(NOPENOBJ) | |
18 $(CC) $(CFLAGS) -o $@ $(NOPENOBJ) $(LDFLAGS) $(NOPENLDLIBS) | |
19 | |
20 dprintf.o: util.h | |
21 noice.o: arg.h noiceconf.h util.h | |
22 nopen.o: arg.h nopenconf.h util.h | |
23 spawn.o: util.h | |
24 strlcat.o: util.h | |
25 strlcpy.o: util.h | |
26 strverscmp.o: util.h | |
27 | |
28 noiceconf.h: | |
29 cp noiceconf.def.h $@ | |
30 | |
31 nopenconf.h: | |
32 cp nopenconf.def.h $@ | |
33 | |
34 install: all | |
35 mkdir -p $(DESTDIR)$(PREFIX)/bin | |
36 cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin | |
37 mkdir -p $(DESTDIR)$(MANPREFIX)/man1 | |
38 cp -f $(MAN) $(DESTDIR)$(MANPREFIX)/man1 | |
39 | |
40 uninstall: | |
41 cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) | |
42 cd $(DESTDIR)$(MANPREFIX)/man1 && rm -f $(MAN) | |
43 | |
44 dist: clean | |
45 mkdir -p noice-$(VERSION) | |
46 cp `find . -maxdepth 1 -type f` noice-$(VERSION) | |
47 tar -c noice-$(VERSION) | gzip > noice-$(VERSION).tar.gz | |
48 | |
49 clean: | |
50 rm -f $(BIN) $(NOICEOBJ) $(NOPENOBJ) noice-$(VERSION).tar.gz | |
51 rm -rf noice-$(VERSION) |