aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-12-22 18:47:36 +0100
committerRobert Alessi <alessi@robertalessi.net>2019-12-22 18:47:36 +0100
commit3bca295893f77657b3be26ef77dc663a912eed4c (patch)
tree09ad743bda4d4da7fd53787aada2fb00fb8fe8be
parent5f876d4dc07d8e52e87256bcbafa24cc0960e946 (diff)
downloadx200-my-3bca295893f77657b3be26ef77dc663a912eed4c.tar.gz
added 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