-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 763 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 763 Bytes
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
dist:
(NPVERSION=`head -1 VERSION` ; \
NPBASEN=`basename $${PWD}` ; \
cd .. ; \
echo $${NPVERSION} $${NPBASEN} ; \
mv $${NPBASEN} NetPass-$${NPVERSION} ; \
tar -cp --exclude CVS -f NetPass-$${NPVERSION}.tar NetPass-$${NPVERSION} ; \
gzip -v -9 NetPass-$${NPVERSION}.tar ; \
mv NetPass-$${NPVERSION} $${NPBASEN} )
clean:
find . -name \*~ -exec rm -f {} \;
find . -name \*.old -exec rm -f {} \;
find . -name .#\* -exec rm -f {} \;
manifest: clean
find . -type f -print | egrep -v '(CVS|.nfs|.#)' | \
sed -e 's/\.\///' > MANIFEST
.PHONY: install
# e.g.
# sudo make install EXCLUDE="--exclude='BeginScan' --exclude='.*\.mhtml'"
install:
./install -c $(EXCLUDE) /opt/netpass
/etc/init.d/apache stop
sleep 5
/etc/init.d/apache start