aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
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 @@
1exts := md html confd initd install sh
2findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)")
3
4all: clean pkg
5
6pkg: clean
7 makepkg
8
9clean:
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