~lastrosade/jsthttpd

ref: 99b768fa43e75e323b07d8172a92acefb06b173f jsthttpd/src/Makefile.am -rw-r--r-- 674 bytes
99b768fa — Anthony G. Basile Revamp of the build system - continued 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SOURCES = thttpd.c libhttpd.c fdwatch.c mmc.c timers.c match.c tdate_parse.c
INCLUDES = config.h fdwatch.h libhttpd.h match.h mime_encodings.h mime_types.h mmc.h tdate_parse.h timers.h version.h

bin_PROGRAMS = thttpd
thttpd_SOURCES = $(SOURCES) $(INCLUDES)

mime_encodings.h: mime_encodings.txt
	rm -f mime_encodings.h
	sed < mime_encodings.txt > mime_encodings.h \
	  -e 's/#.*//' -e 's/[ 	]*$$//' -e '/^$$/d' \
	  -e 's/[ 	][ 	]*/", 0, "/' -e 's/^/{ "/' -e 's/$$/", 0 },/'

mime_types.h: mime_types.txt
	rm -f mime_types.h
	sed < mime_types.txt > mime_types.h \
	  -e 's/#.*//' -e 's/[ 	]*$$//' -e '/^$$/d' \
	  -e 's/[ 	][ 	]*/", 0, "/' -e 's/^/{ "/' -e 's/$$/", 0 },/'