diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-12-22 18:47:36 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-12-22 18:47:36 +0100 |
commit | 3bca295893f77657b3be26ef77dc663a912eed4c (patch) | |
tree | 09ad743bda4d4da7fd53787aada2fb00fb8fe8be /makefile | |
parent | 5f876d4dc07d8e52e87256bcbafa24cc0960e946 (diff) | |
download | x200-my-3bca295893f77657b3be26ef77dc663a912eed4c.tar.gz |
added makefile
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..a0c1b6c --- /dev/null +++ b/makefile | |||
@@ -0,0 +1,20 @@ | |||
1 | exts := md html confd initd install sh | ||
2 | findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") | ||
3 | |||
4 | all: clean pkg | ||
5 | |||
6 | pkg: clean | ||
7 | makepkg | ||
8 | |||
9 | clean: | ||
10 | rm -rf .backup | ||
11 | find -iname "*~" | xargs rm -rf | ||
12 | find ./* -type d | xargs rm -rf | ||
13 | find ./* -type f -iname "makefile" -or -iname "PKGBUILD" $(findopts) > ls-R | ||
14 | rsync -avPr --files-from=ls-R . .backup | ||
15 | rm -rf * | ||
16 | cp -p -r .backup/* . | ||
17 | rm -rf .backup | ||
18 | pandoc -s README.md -o about.html | ||
19 | |||
20 | .PHONY: clean | ||