diff --git a/.gitignore b/.gitignore index 3eaea59..1a4fa05 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ cyoa -cyoa.c \ No newline at end of file +cyoa.c +storybook +src/storybook \ No newline at end of file diff --git a/Makefile b/Makefile index 16dd71c..2ec63b6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,7 @@ -CC = g++ -CFLAGS = -g - all: storybook -storybook: main.c cyoa.c - $(CC) $(CFLAGS) main.c -o storybook -cyoa.c: cyoa.leg - leg -o $@ $^ +storybook: + $(MAKE) -C src storybook + cp src/storybook storybook clean: - rm -f cyoa.c cyoa storybook + rm -f storybook + $(MAKE) -C src clean diff --git a/demo.story b/example/demo.story similarity index 100% rename from demo.story rename to example/demo.story diff --git a/simple.story b/example/simple.story similarity index 100% rename from simple.story rename to example/simple.story diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..16dd71c --- /dev/null +++ b/src/Makefile @@ -0,0 +1,10 @@ +CC = g++ +CFLAGS = -g + +all: storybook +storybook: main.c cyoa.c + $(CC) $(CFLAGS) main.c -o storybook +cyoa.c: cyoa.leg + leg -o $@ $^ +clean: + rm -f cyoa.c cyoa storybook diff --git a/cyoa.leg b/src/cyoa.leg similarity index 100% rename from cyoa.leg rename to src/cyoa.leg diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c diff --git a/storybook b/storybook deleted file mode 100755 index 12453c9..0000000 Binary files a/storybook and /dev/null differ