help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pathsub and notdir comand


From: address@hidden
Subject: Pathsub and notdir comand
Date: Wed, 3 May 2017 20:54:06 +0200 (CEST)

Dear All.

I have some xls on a folder RESHAPE/. I want use the file on RESHAPE folder as 
input for my script and output on  other FOLDEr XLS

This is what I made starting from yur suggestions.   RDIR=RESHAPE
RFILES:=$(wildcard $(RDIR)/*.xls)
SCRIPT=~/Desktop/Create_xls.py
OUTDIR=XLS2
NAME=$(notdir $(RFILES))
OUTFILES=$(patsubst %.xls,$(OUTDIR)/%.xls,$(NAME))

.PHONY: clean all

all: $(OUTDIR) $(OUTFILES)

$(OUTDIR)/%.xls: %.xls

    $(SCRIPT) -i  $< -o $@

$(OUTDIR):
    test -d $@ || mkdir $@

clean::
    rm -rf $(OUTDIR)


The problems is if I use 

OUTFILES=$(patsubst %.xls,$(OUTDIR)/%.xls,$(RDIR))
the ouput are frm reshape...
cOuld you please hep me?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]