Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building nested ls file structure #114

Open
kristianmandrup opened this issue Dec 8, 2016 · 0 comments
Open

Problem building nested ls file structure #114

kristianmandrup opened this issue Dec 8, 2016 · 0 comments

Comments

@kristianmandrup
Copy link

Trying to build using a nested folder structure for divide/conquer of logic.
Not used to Makefile, how to I make all my nested ls files compile into lib !?!?.

LIB = $(SRC:src/%.ls=lib/%.js)

lib:
	rm -rf lib
	mkdir -p lib/

lib/%.js: src/%.ls lib
	$(LSC) --compile --output lib "$<"

lib/replace/%.js: src/replace/%.ls lib/replace
	$(LSC) --compile --output lib/replace "$<"

lib/runner/%.js: src/runner/%.ls lib/runner
	$(LSC) --compile --output lib/runner "$<"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant