Skip to content

Commit

Permalink
Add licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
htv04 committed Feb 19, 2024
1 parent 28cb89d commit ccb7847
Show file tree
Hide file tree
Showing 3 changed files with 466 additions and 4 deletions.
36 changes: 32 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,48 @@
# MIT License
#
# Copyright (c) 2024 HTV04
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# htv04.github.io Makefile

# Phony targets
.PHONY: all pages run clean

# Full website (default)
all: root pages

pages: root/index.html root/images

# Pages
pages: root/images root/index.html
root/%.html: src/pages/%.md root
pandoc $< -f markdown -s -t html -o $@

root/images: root
cp -r src/pages/images root/images

# Website root
root:
mkdir root

run:
# Run website via Python
run: root
python3 -m http.server -d root

# Clean
clean:
rm -rf root
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ This website will host a number of things eventually, but for now it's very WIP.

## Building
Requirements: `pandoc`

```
make
```

## Running
Requirements: `python3`

```
make run
```

## Licenses
* [`src/pages`](src/pages): [`CC-BY-SA-4.0`](src/pages/LICENSE)
* [`Makefile`](Makefile): [`MIT`](Makefile#L1-L21)
* [`root`](root): **All of the above**
Loading

0 comments on commit ccb7847

Please sign in to comment.