diff options
author | Kornel Lesiński <kornel@geekhood.net> | 2018-07-13 17:35:50 +0100 |
---|---|---|
committer | Kornel Lesiński <kornel@geekhood.net> | 2018-07-13 17:35:50 +0100 |
commit | 334160863e3c582661199aa8a93b4e56bb9832a6 (patch) | |
tree | 6d9f72868ac85002923e1d893fa4259b3062b081 /Makefile | |
parent | d93a9d92346ec57410b9fa3669917ceca29808fc (diff) |
Auto build
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2182a4a --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +all: website + +website: caches data/index/1 styles + cd front_end && cargo run --release --bin website + cd style && npm start + +caches: data/cache.db data/crates.db data/github.db data/category_keywords.db data/users.db + +styles: style/public/index.css + +style/public/index.css: style/node_modules/.bin/gulp + cd style && npm run build + +style/node_modules/.bin/gulp: + @echo Installing Sass + cd style && npm install + touch $@ + +data/index/1: + @echo Getting crates index + git submodule update + +%.db: %.db.xz + @echo Uncompressing $@ + -rm -f $@ + unxz -vk $< + +data/cache.db.xz data/github.db.xz data/category_keywords.db.xz data/users.db.xz data/crates.db: + @echo Downloading $@ + curl --fail --output $@ https://crates.rs/$@ + +.PHONY: all caches styles clean + +clean: + rm -rf style/public/*.css |