-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
37 lines (30 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Simple makefile for debian packaging system
INSTALLFILES := $(shell find . \
\( \
-path './.git' -prune -or \
-path './.gitignore' -prune -or \
-path './debian' -prune -or \
-path './dependencies' -prune -or \
-not -name '*.log' -and \
-not -name 'Makefile' -and \
-not -name 'README' -and \
-not -name 'pgsql.sql' -and \
-not -name 'credentials_template.py' -and \
-not -name 'credentials.py' -and \
-not -name 'configure-stamp' -and \
-not -name 'build-stamp' \
\) \
-print | cut -c3- )
POSTINSTALL := $(shell find postinstall -maxdepth 1 -type f )
default: all
install: $(INSTALLFILES)
list='$(INSTALLFILES)'; \
for p in $$list; do \
if test -f $$p; then \
echo install -D -m 0644 $$p ${DESTDIR}/usr/share/webpy-example/$$p ;\
install -D -m 0644 $$p ${DESTDIR}/usr/share/webpy-example/$$p ;\
fi \
done
install -D -m 0644 pgsql.sql ${DESTDIR}/usr/share/dbconfig-common/data/webpy-example/install/pgsql
all:
clean: