aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: a0c1b6ca870ebf2dd94fa4d0cbd10b7d0318272d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
exts := md html confd initd install sh
findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)")

all: clean pkg

pkg: clean
	makepkg

clean:
	rm -rf .backup
	find -iname "*~" | xargs rm -rf
	find ./* -type d | xargs rm -rf
	find ./* -type f -iname "makefile" -or -iname "PKGBUILD" $(findopts) > ls-R
	rsync -avPr --files-from=ls-R . .backup
	rm -rf *
	cp -p -r .backup/* .
	rm -rf .backup
	pandoc -s README.md -o about.html

.PHONY: clean