diff options
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 | ||