Makefile: for each .x file, create a .html file -


(similar question here). every .x file in directory want run command generate html file. command works fine, it's makefile i'm having trouble with. here's came with:

all: $(objects) objects := $(patsubst %.x,%.html,$(wildcard *.x))  %.html: %.x     generate $< > $@ 

the objects variable meant contain html files need generate. invoking make states nothing done 'all', , there no html files in directory.

turns out make sensitive order of variable definitions. makefile works when first 2 lines switched!


Comments

Popular posts from this blog

c# - Class in a list -

mysql - Django database model for my website -

ios - How to run a segue on itself OR another viewController -