Skip to content
Snippets Groups Projects
Makefile 511 B
Newer Older
  • Learn to ignore specific revisions
  • include ../config.mk
    
    SOURCES = ${shell echo *.pre}
    TARGETS = ${SOURCES:.pre=.1}
    
    all: ${TARGETS}
    
    .pre.1:
    
    	sed \
    	-e 's/\$$VERSION\$$/${VERSION}/g' \
    
    	-e 's/\$$DATE\$$/${MAN_DATE}/g' \
    
    	-e 's/\$$MAN_CURL\$$/${MAN_CURL}/' \
    	-e 's/\$$MAN_DEBUG\$$/${MAN_DEBUG}/' \
    
    	-e 's/\$$MAN_EXIF\$$/${MAN_EXIF}/' \
    
    Sven Willner's avatar
    Sven Willner committed
    	-e 's/\$$MAN_INOTIFY\$$/${MAN_INOTIFY}/' \
    
    	-e 's/\$$MAN_XINERAMA\$$/${MAN_XINERAMA}/' \
    
    	< ${@:.1=.pre} > $@
    
    
    .SUFFIXES: .pre .1
    
    .PHONY: clean