forked from csirtgadgets/cif-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
45 lines (34 loc) · 913 Bytes
/
Makefile.am
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
37
38
39
40
41
42
43
44
45
EXTRA_DIST = lib
ME=cif-testing-framework
BUILD=$(shell git describe --tags)
SNAPSHOT=$(ME)-$(BUILD)
all: default
default:
@echo "Please read the README before beginning your installation."
fixperms:
chmod 0755 $(prefix)
chown -R $(CIF_USER) $(prefix)
chgrp -R $(CIF_GROUP) $(prefix)
install: files-install fixperms
files-install: libs-install
libs-install:
[ -d $(libdir) ] || $(INSTALL) -m 0755 -d $(libdir)
-( cd lib && find . -type d -print ) | while read dir ; do \
$(INSTALL) -m 0755 -d "$(libdir)/$$dir" ; \
done
-( cd lib && find . -type f -print ) | while read file ; do \
$(INSTALL) -m 0644 "lib/$$file" "$(libdir)/$$file" ; \
done
clean:
rm Makefile
rm config.log
rm config.status
realclean:
clean
rm Makefile.in
rm configure
rm aclocal.m4
reconf:
autoreconf -vf
snapshot:
git archive --format=tar --prefix=$(BUILD)/ $(BUILD) | gzip > $(SNAPSHOT).tar.gz