Check-in [cbe7d25150]
Overview
Comment:Updated to more safely generate mimetypes file
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cbe7d25150468ca93e2073523f3ca4df7accca91
User & Date: rkeene on 2014-02-08 03:17:31
Other Links: manifest | tags
Context
2014-02-08
03:36
Updated to support addresses specified in IPv4 style (in which case only IPv4 is used) check-in: 0bbc3f5bba user: rkeene tags: trunk
03:17
Updated to more safely generate mimetypes file check-in: cbe7d25150 user: rkeene tags: trunk
03:16
Moved cleanup of mime types file to distclean check-in: c928347a46 user: rkeene tags: trunk
Changes

Modified Makefile from [e28021e369] to [a294b2122c].

13
14
15
16
17
18
19
20


21
22
23
24
25
26
27
28
29

30
31
32
33
34
13
14
15
16
17
18
19

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36







-
+
+









+






filed: filed.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o "$@" $^ $(LIBS)

filed.o: filed.c filed-mime-types.h

filed-mime-types.h: generate-mime-types
	./generate-mime-types "$(MIMETYPES)" > filed-mime-types.h
	./generate-mime-types "$(MIMETYPES)" > filed-mime-types.h.new
	mv filed-mime-types.h.new filed-mime-types.h

install: filed filed.1
	test -d "$(DESTDIR)$(mandir)/man1" || mkdir -p "$(DESTDIR)$(mandir)/man1"
	test -d "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
	cp filed.1 "$(DESTDIR)$(mandir)/man1/"
	cp filed "$(DESTDIR)$(bindir)/"

clean:
	rm -f filed filed.o
	rm -f filed-mime-types.h.new

distclean: clean
	rm -f filed-mime-types.h

.PHONY: all install clean distclean