depre

Afficher la date et l'heure hexadécimale
git clone git://git.asteride.xyz/~ldp/depre.git
Journaux | Fichiers | Références | LISEZ-MOI | LICENCE

Makefile (717B)


      1 VERSION    = 1.0 (2024/08/08)
      2 
      3 PREFIX     = /usr/local
      4 BIN_DOS    = ${PREFIX}/bin
      5 MAN_DOS    = ${PREFIX}/man
      6 
      7 DOS_MAN    = man
      8 
      9 CC         = cc
     10 COPTS_SPCL = -O2 -DNDEBUG
     11 COPTS      = -Wall -Wextra -Werror -Wpedantic -std=c89 ${COPTS_SPCL}
     12 CPPOPTS    = -DVERSION="\"${VERSION}\""
     13 
     14 LANG_MAN  != ls "${DOS_MAN}"
     15 
     16 .SUFFIXES: .c .o
     17 .c.o:
     18 	${CC} ${CPPOPTS} ${COPTS} -c "$<"
     19 
     20 all: depre
     21 
     22 depre: depre.o
     23 	${CC} ${COPTS} -o "$@" depre.o
     24 
     25 inst_man:
     26 	for L in ${LANG_MAN} ; \
     27 	do \
     28 		mkdir -p ${MAN_DOS}/$$L/man1 ; \
     29 		cp "${DOS_MAN}/$$L/"* "${MAN_DOS}/$$L/man1" ; \
     30 	done
     31 
     32 install: all inst_man
     33 	mkdir -p "${BIN_DOS}"
     34 	install -m 755 depre "${BIN_DOS}"/depre
     35 
     36 uninstall:
     37 	rm -f ${BIN_DOS}/depre
     38 
     39 clean:
     40 	rm -f depre *.o *.core