"Fossies" - the Fresh Open Source Software Archive

Member "htpdate-1.3.4/Makefile" (18 Apr 2022, 1089 Bytes) of package /linux/www/htpdate-1.3.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 1.3.3_vs_1.3.4.

    1 prefix = $(DESTDIR)/usr
    2 bindir = ${prefix}/sbin
    3 mandir = ${prefix}/share/man
    4 
    5 CC       ?= gcc
    6 CFLAGS   += -Wall -std=c11 -pedantic -O2
    7 SSL_LIBS ?= -lssl
    8 
    9 INSTALL ?= install -c
   10 STRIP   ?= strip -s
   11 
   12 all: htpdate
   13 
   14 htpdate: htpdate.c
   15 	$(CC) $(CFLAGS) -o htpdate htpdate.c
   16 
   17 https: htpdate.c
   18 	$(CC) $(CFLAGS) -DENABLE_HTTPS -o htpdate htpdate.c $(SSL_LIBS)
   19 
   20 install: all
   21 	$(STRIP) htpdate
   22 	mkdir -p $(bindir)
   23 	$(INSTALL) -m 755 htpdate $(bindir)/htpdate
   24 	mkdir -p $(mandir)/man8
   25 	$(INSTALL) -m 644 htpdate.8 $(mandir)/man8/htpdate.8
   26 	gzip -f -9 $(mandir)/man8/htpdate.8
   27 
   28 test:
   29 	./htpdate -v
   30 	./htpdate -p 1 www.example.com http://www.example.com https://example.com
   31 	./htpdate -p 1 -d www.example.com www.example.com:80/htpdate.html
   32 	./htpdate -p 2 -04q www.example.com/
   33 	./htpdate -6q www.example.com
   34 	./htpdate -t -dd www.example.com
   35 	./htpdate -p1 https://93.184.216.34 https://93.184.216.34:443
   36 	./htpdate -p1 93.184.216.34:80
   37 	./htpdate -p1 [2606:2800:220:1:248:1893:25c8:1946]
   38 	./htpdate -h
   39 
   40 clean:
   41 	rm -rf htpdate
   42 
   43 uninstall:
   44 	rm -rf $(bindir)/htpdate
   45 	rm -rf $(mandir)/man8/htpdate.8.gz